[jboss-user] [Management, JMX/JBoss] - how to get mbean to deploy after ejb is bound

lost_traveller do-not-reply at jboss.com
Tue May 1 04:40:35 EDT 2007


I have an MBean contained within a SAR file contained within an EAR. In the MBean I do a JNDI lookup for a SessionBean but it is failing because the MBean is deployed before the EJB. How do I get the MBean to deploy after the EJBs have been bound to the JNDI?
Adding a depends on the EJB deployer makes no difference to when the MBean is deployed:

  <mbean code="foo.bar.FooBarService" 
  |   	name="Foo:service=foo.bar.FooBarService">
  |   	<depends>jboss.ejb:service=EJBDeployer</depends>
  |   </mbean>

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

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



More information about the jboss-user mailing list