[jboss-user] [JCA/JBoss] - Re: Lookup of ConnectionFactory from standalone client retur

weston.price@jboss.com do-not-reply at jboss.com
Wed Jul 26 11:00:24 EDT 2006

The JMS/JCA adapter is meant to be used exclusively in a managed environment (ie Servlets/EJBs). To get a JMS connection in a standalone client you want to use

ConnectionFactory cf = (ConnectionFactory)initialContext.lookup("ConnectionFactory");

Note, the above is for JMS 1.1. For JMS 1.0.1b clients you would cast to the specific domain type (ie Queue/Topic). 

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

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

More information about the jboss-user mailing list