Showing posts with label sequence. Show all posts
Showing posts with label sequence. Show all posts

Nov 23, 2010

Loading order in websphere application server

Hi,
Definition is simple, follow the orders,  Enter the following (bullets as steps):
  • WAS admin console
  • Enterprise Applications
  • Select the first EAR for example
  • Startup Behavior
  • In the "Startup Order" Enter a weight.
  • The weights are like priorities of loading, the lowest is first one to be loaded etc.
Dor

JBoss deployment sequence

I have found two possible ways of changing jboss deployment sequence. If you know more, share with us.
  1. Edit "org.jboss.deployment.MainDeployer-xmbean.xml" file, which can be foundon "jbossdirectory\server\default\conf\xmdesc" directory. Inside the file you have a line like this "100:deployer,100:deployer.xml,200:sar,200:service.xml,300:rar,300:ds.xml,500:jar,600:war,600:wsr,600:ear,700:zip,900:last"This section defines the priority or sequence of *.sar for example before *.rar. You can switch between *.sar to be 700 for example and it will run after deploying the war. I would use it only for test environment but not for deployment or release. Choosing this option for my opinion is not a good design.
  2. In case you have a jboss service like i did as a "SAR" file, you can add a dependency tags into the "jboss-service.xml" file. For example: jboss:service=invoker,type=jrmp
Have a good day,
Dor

JBoss deployment sequence

I have found two possible ways of changing jboss deployment sequence. If you know more, share with us.
  1. Edit "org.jboss.deployment.MainDeployer-xmbean.xml" file, which can be foundon "jbossdirectory\server\default\conf\xmdesc" directory. Inside the file you have a line like this "100:deployer,100:deployer.xml,200:sar,200:service.xml,300:rar,300:ds.xml,500:jar,600:war,600:wsr,600:ear,700:zip,900:last"This section defines the priority or sequence of *.sar for example before *.rar. You can switch between *.sar to be 700 for example and it will run after deploying the war. I would use it only for test environment but not for deployment or release. Choosing this option for my opinion is not a good design.
  2. In case you have a jboss service like i did as a "SAR" file, you can add a dependency tags into the "jboss-service.xml" file. For example: jboss:service=invoker,type=jrmp
Have a good day,
Dor