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.anonymous wrote : 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861386#3861386

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861386


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to