[jboss-user] [JBoss Messaging] - Re: Consumed messages redelivered ?

timfox do-not-reply at jboss.com
Mon Jul 31 12:00:05 EDT 2006

Your "WMXQueueConnectionFactory" is a JCA managed connection factory, whereas XAConnectionFactory is a standard JMS connection factory.

You would use WMXQueueConnectionFactory is you wanted jms transactional operations to be enlisted in any global transactions in the app server, e.g. if you wanted to send a message in the same global transaction as calling an ejb for example, or if you wanted to use UserTransaction.

If you use the straightforward XAConnectionFactory you cannot use UserTransaction to demarcate JMS transaction boundaries, it will have no effect, so you will either have to use standard jms transactions (session.commit or rollback) or explicitly enlist in the global transaction by using the session's XAResource directlly.

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

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

More information about the jboss-user mailing list