activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sophia Wright <sophiawrigh...@gmail.com>
Subject Re: Transactions in Stomp
Date Wed, 04 Dec 2013 08:49:44 GMT
In addition to the last question..

As specified on the page
http://activemq.apache.org/how-do-i-unack-the-message-with-stomp.html

---------How to receive the message in transactions using
CLIENT_ACK--------------------
connection.begin("tx3");
frame = connection.receive();
System.out.println(frame.getBody());
connection.ack(frame, "tx3");
connection.commit("tx3");
-------------------------------------------------------

In the above source code, 
1) What is the internal ActiveMQ processing of message between
connection.ack() and connection.commit() ?
2) Can I use receive more then one messages(receive---ack--receive--ack....)
in one transaction and then commit it once ? 


 



--
View this message in context: http://activemq.2283324.n4.nabble.com/Transactions-in-Stomp-tp4675080p4675082.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message