[jboss-user] [JBoss Messaging] - Re: Messaging and transactions together

2009-08-13 Thread damian.sinczak
That didn't help. All the time I'm receiving NoResultException in MDB when trying to retrieve numbers from database. It's like the data I've persisted are not commited. This effect do not happen all the time. It happens from time to time and in all cases for first or second message that is

[jboss-user] [JBoss Messaging] - Re: Messaging and transactions together

2009-08-13 Thread timfox
If you want messaging and a database to work as part of the same JTA transaction in a servlet, you should use the JMS JCA adapter (java:/JmsXA) in the same way you might do it from an EJB. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4249342#4249342 Reply

[jboss-user] [JBoss Messaging] - Re: Messaging and transactions together

2009-08-13 Thread damian.sinczak
Changing ConnectionFactory to java:/JmsXA solved the problem. Thank you very much, you saved me a lot of time. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4249378#4249378 Reply to the post :

[jboss-user] [JBoss Messaging] - Re: Messaging and transactions together

2009-08-12 Thread gaohoward
Using XAQueueSession is the correct way. You need to use getXAResource() and explicitly enlist the XAResource into your transaction. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4249257#4249257 Reply to the post :