[jboss-user] [EJB 3.0] - Re: EJB jar deploy order in Jboss AS
ALRubinger
do-not-reply at jboss.com
Sun Jun 10 10:07:22 EDT 2007
Sure. You can do a couple of things.
If you're looking to alter the order of deployment:
1) Write your own DeploymentSorter and plug it into the MainDeployer in $JBOSS_HOME/server/[youServerName]/conf/jboss-service.xml - you can customize here to your heart's content.
- OR -
2) Add a numeric or alphanumeric prefix (eg "1-myapp.ear") to each of your deployable units, and set the "URLComparator" attribute of the deployment sorter appropriately.
http://www.jboss.org/wiki/Wiki.jsp?page=URLComparator
...but better for you in this case, if your JARs are more than libraries and contain deployable units in themselves (EJB3s, or example), you'd be better off defining in a @Depends annotation the name of the Service upon which your other service depends. Check the JMX Console to get the ObjectNames of your services.
Check out the Dependency Section here:
http://trailblazer.demo.jboss.com/EJB3Trail/serviceobjects/jmx/
Good luck.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052907#4052907
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052907
More information about the jboss-user
mailing list