[jboss-user] [Messaging, JMS & JBossMQ] - Re: JNDI over HTTP problem
adrian@jboss.org
do-not-reply at jboss.com
Fri Dec 21 10:39:51 EST 2007
Try the jndi faq. e.g. java: namespace is not accesible remotely.
The correct code is either:
If you have defined it in your enc (again see JNDI FAQ for resource-refs)
| InitialContext jndiContext = new IntiialContext();
| ConnectionFactory connFactory = (ConnectionFactory)jndiContext.lookup("java:comp/env/jms/ConnectionFactory");
|
or
| ConnectionFactory connFactory = (ConnectionFactory)jndiContext.lookup("HTTPConnectionFactory");
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115012#4115012
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115012
More information about the jboss-user
mailing list