Reputation: 845
I want to understand behavior(sync or async) of transacted sessions in spring JMSTemplate while sending non-persistent messages to the ActiveMQ broker. I am talking about the JMSTemplate configuration where Session is transacted and messages sent are non-persistent
According to my understanding:
The non-persistent messages send to the ActiveMQ broker are sent async.
But messages send on a transacted session are synchronous. Since commit call is synchronous and JMSTemplate commit after each message sent.
Is message sending with the above specified configuration is synchronous or asynchronous? Please help me to understand this behavior.
Thanks,
Anuj
Upvotes: 1
Views: 1444
Reputation: 174494
The persistence is irrelevant - the commit is a separate operation on the session.
Upvotes: 1