2 Replies Latest reply on May 1, 2007 12:25 PM by Dimitris Andreadis

    how to get mbean to deploy after ejb is bound

    lost traveller Newbie

      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"