JBoss Community

finding JMS resources with java:comp/env

created by alejandro soto in JNDI and Naming - View the full discussion

Hi, I am new in JBoss, so, what i need to do is, find a topic (JMS) but with the following configuration:

 

Context ctx;

ctx = new InitialContext(new Hashtable(env));
ctx = (Context)ctx.lookup("java:comp/env");

TopicConnectionFactory factory = (TopicConnectionFactory)ctx.lookup("TopicConnectionFactory");

 

For now, in my log i have:

 

(http-127.0.0.1-8080-1) javax.naming.NameNotFoundException: TopicConnectionFactory not bound

................

 

Of course, my topic is registered in JBoss, I am using JBoss 6.1.0.

 

Thanks a lot.

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community