1 Reply Latest reply on Jun 21, 2006 4:06 AM by Gerhard

    EJB3 Dependancy between apps

    Gerhard Newbie


      I have two .ear files, say A.ear and B.ear.
      The problem is that B.ear needs to be deployed before A.ear, in order for an @EJB injection in A.ear to find a session bean in JNDI (created by B.ear)

      I can deploy them in that order, and everything is fine (the JNDI has the entry by the time it must be injected). When I stop and start JBoss however, there are problems because A.ear is deployed before B.ear and the injection fails.

      Is there any way in which dependancies can be specified for EJB3 in a similar way as for MBeans (with a "depends" tag), or any other way.

      I'd prefer it if the dependancy can be resolved by not changing the ear files to 01-B.ear and 02-A.ear in oder for the deployer to deploy B before A.

      Any help would be greatly appreciated!