[jboss-user] [Messaging, JMS & JBossMQ] - Re: java.lang.ClassCastException

weston.price@jboss.com do-not-reply at jboss.com
Tue May 1 08:54:27 EDT 2007


The JMS/JCA adapter is not meant to be used outside of the application server. It is specifically for EJB and Servlets that need JMS XA. For JMS outside of the server you need to use something like the following:


  | 
  | QueueConnectionFactory qcf = (QueueConnectionFactory)ctx.lookup("ConnectionFactory");
  | 

The "ConnectionFactory" binding is the generic ConnectionFactory meant to be used outside of the container. Also, you should remove the 


  | <use-java-context>false</use-java-context>
  | 

>From you *-ds.xml file.

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

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



More information about the jboss-user mailing list