0 Replies Latest reply on Dec 1, 2007 11:58 AM by nie feng

    Enforce dependency on LocalHome interface?

    nie feng Newbie

      Hi all,

      I have the scenario that module A (contain a session bean A) is depending on module B (contain a sessionbean B) meaning during shutdown of the AP server, module A need to be undeploy first prior B.

      After google it, I found out that the we can use the add the tag "jboss.j2ee:service=EJB,jndiName=somejndiName " define in the jboss.xml of module A.

      However, if I use the jndiName that point to the localHome interface of the Session Bean B instead of the Home interface of the session bean B, the startup of the JBOSS AS is throwing some exception as follow

      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.j2ee:service=EJB,jndiName=test.framework.jms.ejb.B_Local_Home
       State: NOTYETINSTALLED
       Depends On Me:
       jboss.j2ee:service=EJB,jndiName=test.document.facade.ejb.A_Home
      
      



      If I change the dependency using the Home Interface of session bean B, the deployment is fine.

      Is it true that we can't make such a dependency to the LocalHome interface of a session bean?

      Thanks