[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 processed. When I was 
testing today I've noticed that MDB starts to retrieve data in the moment 
transaction in servlet is commited.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4249337#4249337

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249337
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249342
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249378
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249257
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user