This content has been marked as final.
Show 2 replies
-
1. Re: How do you get JBossConnectionFactory to connect to a re
peterj Sep 12, 2008 5:02 PM (in response to bbarlow)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 -
2. Re: How do you get JBossConnectionFactory to connect to a re
timfox Sep 13, 2008 8:15 AM (in response to bbarlow)The standard way in JMS to get a connection factory is to look it up from JNDI (see JMS spec).
ActiveMQ is different in that it also allows you to instantiate one directly which is what you have done in the past.
JBM 1.x does not support direct instantiation of connection factories, but JBM 2.0 does.