[jboss-user] [Messaging, JMS & JBossMQ] - Re: JMS -JBoss -- where to define ConnectionFactory

jaikiran do-not-reply at jboss.com
Wed Dec 5 09:30:38 EST 2007


The ConnectionFactory is available for you in the JNDI. You just have to lookup the same as follows:

  | Context iniCtx = new InitialContext();
  | QueueConnectionFactory qf = (QueueConnectionFactory) iniCtx.lookup("ConnectionFactory");

Both the TopicConnectionFactory and the QueueConnectionFactory are available with the same jndi-name "ConnectionFactory".

For more details have a look at http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch6.chapt.html




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

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



More information about the jboss-user mailing list