This content has been marked as final.
Show 1 reply
-
1. Re: Is it possible to deploy multi-applications in order in Jboss7?
cfang Oct 2, 2012 2:07 PM (in response to yunshi)You can package ejb.jar inside app.ear, and specify intialization order in application.xml (Java EE 6 or later). Or you can implement both sides as @Singleton @Startup, with the consuming side @DependsOn the provider side.
If your ejb service is implemented as @Startup singleton, in its @PostConstruct, it should complete all init logic before returning from deploy command. So even if you deploy them separately in sequence, the second deploy is guaranteed to have a completely initialized service from the first deploy