You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by o....@student.lboro.ac.uk on 2014/04/20 04:53:29 UTC

Re: Transactions in Stomp

Hi, 


I was wondering what is the best practice for a transaction if I am constantly listening to the message would it be like the following pseudo-code 


WHILE(TRUE)

{

BEGIN TRANSACTION

MESSAGE RECEIVE

ACK

COMMIT

}


or


BEGIN TRANSACTION


WHILE(TRUE)

{

MESSAGE RECEIVE

ACK

}



COMMIT

Sent from Windows Mail