2 Replies Latest reply on Jan 10, 2005 8:45 PM by jieshengz

    depend on jms connection factory does not work

    jieshengz Newbie

      I have a Mbean which registers itself as a queue listener at start up. There fore, it depends on JMS service. I have one line my jboss-service.xml

      <depends>jboss.mq:name=JMSProvider,service=JMSProviderLoader</depends>
      

      However, in the bean start up method, when I try to look up the the like this
      Context context = new InitialContext();
      QueueConnectionFactory connectionFactory =
       connectionFactory = (QueueConnectionFactory) context.lookup("java:/ConnectionFactory");
      

      I always get a NameNotFoundException. If I deploy this mbean after the whole jboss started, everything works fine.

      By the way, I enabled RecursiveScanner in the conf/jboss-service.xml.

      what could be the possible reason that this dependecy does not work?

      Any help is appreciated.