On 12/04/2013 03:49 AM, Sophia Wright wrote:
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.
You can receive without acking but at some point you will hit the
prefetch limit, depending on what you configure it as, so you would need
to start acking messages if you intend to consume a large batch inside a
single transaction.
--
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.b...@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/