[jboss-user] [JBoss Messaging] - Re: How do you get JBossConnectionFactory to connect to a re
PeterJ
do-not-reply at jboss.com
Fri Sep 12 17:02:56 EDT 2008
Try this:
Context initial = new InitialContext();
ConnectionFactory cf = (ConnectionFactory)initial.lookup("ConnectionFactory");
where jndi.properties contains:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://remotemachine.faraway.com:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176267#4176267
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176267
More information about the jboss-user
mailing list