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 ---
Depends On Me:
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?