ejb jars are deployed before wars so show the startup ordering. A test.ear
with ejbs and a war shows the ejbs started before the war:

09:14:48,246 INFO [MainDeployer] Starting deployment of package: file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/
09:14:48,247 INFO [EARDeployer] Init J2EE application: file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/
09:14:49,956 INFO [EjbModule] Deploying BMPBean
09:14:50,216 INFO [EjbModule] Deploying BMPCallbackBean
09:14:50,232 INFO [EjbModule] Deploying CMPBean
09:14:50,272 INFO [EjbModule] Deploying CMPBean2
...
09:14:53,536 INFO [EJBDeployer] Deployed: file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/cts.jar
09:14:53,794 INFO [EmbeddedTomcatService] deploy, ctxPath=/traxbahn, warUrl=file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/traxbahn.war/
09:14:54,312 INFO [Engine] ContextConfig[/traxbahn]: Added certificates -> request attribute Valve
...
09:14:54,347 INFO [Engine] StandardWrapper[/traxbahn:invoker]: Loading container servlet invoker
09:14:54,758 INFO [EARDeployer] Started J2EE application: file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/
09:14:54,758 INFO [MainDeployer] Deployed package: file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/


--
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

Jonathan.O'[EMAIL PROTECTED] wrote:

Hi, I'm trying to migrate our code from JBoss 3.0.6 to 3.2.2 and I've got a problem due to deployment order.
My ear file has a backend.jar containing entity beans and session beans, a frontend.war. In 3.0.6, the backend.jar was always deployed first before the WAR. This meant that a listener in the WAR ran happily accessing session beans in the backend.


But in 3.2.2 (and in RC4 too) I get an exception trying to run the listener code in contextInitialized(). It seems that the session beans in the backend.jar have not been loaded yet. Is there a way of setting a dependency on the order of loading in 3.2.2? jboss-service.xml has a depends clause, but that won't work for <ejb> or <web> stuff.

Any help would be greatly appreciated
Ciao,
Jonathan O'Connor
XCOM Dublin



------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to