You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Drizzt321 <dr...@gmail.com> on 2009/10/28 22:10:43 UTC

JMS Transactions and losing the connection

What will happen if a Session is transacted via JMS Transactions, and there
is some kind of network hiccup that causes the Connection to be lost/reset.
Will the transaction automatically be rolled back? Do I need to call
rollback on the new Session? 

If the broker goes down (shutdown, or JVM terminates unexpectedly), I'm
guessing that the transaction is completely lost and so no need to worry
about a rollback, correct?

Thanks,
Aaron
-- 
View this message in context: http://www.nabble.com/JMS-Transactions-and-losing-the-connection-tp26102096p26102096.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: JMS Transactions and losing the connection

Posted by Bruce Snyder <br...@gmail.com>.
On Wed, Oct 28, 2009 at 5:10 PM, Drizzt321 <dr...@gmail.com> wrote:
>
> What will happen if a Session is transacted via JMS Transactions, and there
> is some kind of network hiccup that causes the Connection to be lost/reset.
> Will the transaction automatically be rolled back?

Yes.

> Do I need to call
> rollback on the new Session?

There's no need to do that.

> If the broker goes down (shutdown, or JVM terminates unexpectedly), I'm
> guessing that the transaction is completely lost and so no need to worry
> about a rollback, correct?

Correct.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder