[jboss-user] [JBoss Messaging] - Re:

timfox do-not-reply at jboss.com
Thu Jul 9 07:46:03 EDT 2009


"clebert.suconic at jboss.com" wrote : Take a look at jms-ds.xml
  | 
  | 
  | The JNDI is java:/XAConnectionFactory.
  | 
  | (You need to use the local JNDI for that... just do new InitialContext(). As you may known java:/ means local VM).
  | 
  | 
  | you can just do:
  | 
  | 
  | InitialContext ctx = new IntialContext();
  |   | ConnectionFactory cf = (ConnectionFactory)ctx.lookup("java:/XAConnectionFactory");
  |   | 
  | 
  | 

That is NOT correct.

If you lookup java:/XAConnectionFactory you will NOT be using JCA.

There is a section on using JCA in the docs:

http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/usermanual-2.0.0.beta3/html_single/index.html#d0e5931



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

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



More information about the jboss-user mailing list