1 Reply Latest reply on Jul 7, 2004 8:05 PM by genman

    MBean service looks up Connection in start() from MQ service

    alt_amit

      In My MBean service start() method, which gets called when the MBean is deployed, I look up the ConnectionFactory. I get: javax.naming.NameNotFoundException: ConnectionFactory not bound

      My MBean is deployed earlier than any of the MQ services start - OIL, UIL, UIL2 invocation layers etc.

      I tried to get around that by putting in the jboss-service.xml something like : jboss:service=Naming.
      And also the UIL2 invocation layer service etc. No luck.

      (I can get by with boolean variable firstTime, which is set to false in start() method, but that's not my intent. My intent is to look up Connection in the start() method at MBean deploy time, so for that I need the services that my mbean is dependent on to be started.)

      - amit.