1 Reply Latest reply on Sep 25, 2003 5:29 AM by neerajvyas

    MBean - DataSource startup dependency

    guypardon Newbie

      Hi,

      How can an MBean extension know when all XA resource adapters are bound in JNDI?

      I am developing an application as an MBean extension on top of JBoss, which needs to initialize (start) only after _all_ XA connectors (JDBC, JMS adapters) have been bound into JNDI.


      Does anyone have any suggestions? I know one can set dependencies among services, but which service should my MBean wait for? Just waiting for the JNDI is not enough, I guess: the binding of these resource adapters could happen after that?

      Thanks a bunch for any insight,

      Guy

        • 1. Re: MBean - DataSource startup dependency
          neerajvyas Newbie

          Hi,
          I am also having same problem, I want to use datasource from one of my service MBean defined in .sar, but I get pool not bound exception while initializing the MBean.
          If I define that MBean in Jboss/servaer/all/conf/jboss-service.xml (define as last service) it workd fine. So if your MBean is not required to be deployed as a separate service you can define in mentioned file.
          I tried with different depend options, but don't know which service to depend on.