1 Reply Latest reply on Sep 13, 2003 4:09 AM by juha

    MBean - Res. Adapter Dependency

    guypardon Newbie


      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,


        • 1. Re: MBean - Res. Adapter Dependency

          JBoss JCA adapters bind their MBeans under JMX jboss.jca domain, for instance:


          for DefaultDS and JMS connection managers (these in turn expose their JNDI names as MBean attributes).

          Or you could look into JSR-77 management domain under jboss.management.local domain, each deployed RAR package for instance creates an MBean:

          jboss.management.local:J2EEApplication=null,J2EEServer=Local,ResourceAdapterModule=jboss-xa-jdbc.rar,j2eeType=ResourceAdapter,name=JBoss JDBC XATransaction ResourceAdapter

          And each JCA connection factory under:

          jboss.management.local:J2EEServer=JBoss LocalTransaction JDBC Wrapper,JCAResource=DefaultDS,j2eeType=JCAConnectionFactory,name=DefaultDS
          jboss.management.local:J2EEServer=JMS Adapter,JCAResource=JmsXA,j2eeType=JCAConnectionFactory,name=JmsXA

          -- Juha