[jboss-user] [Installation, Configuration & DEPLOYMENT] - Enforce dependency on LocalHome interface?

niefeng do-not-reply at jboss.com
Sat Dec 1 11:58:21 EST 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109550#4109550

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109550



More information about the jboss-user mailing list