ibm-messaging / mq-jms-spring

Components to assist MQ JMS integration with Spring frameworks
Apache License 2.0
190 stars 102 forks source link

How to enable Synched Local Transaction Allowed #61

Closed gocoolharsh closed 3 years ago

gocoolharsh commented 4 years ago

Hi I just want to know how we can enable SynchedLocalTransactionAllowed

ibmmqmet commented 4 years ago

MQ JMS can participate in full XA transactions under the control of a transaction manager; that's how I would expect operations to be protected.

There's no real information that I can find on how JMS providers might expose this less-than-reliable transaction management feature. But it appears to be something you can use directly using the Spring Framework APIs, rather than anything implemented in the individual messaging components. There's certainly no reference to it in any of the Sping Boot projects. You're probably better off asking about it in a more general Spring forum.

ibmmqmet commented 3 years ago

You may also want to look at the new sample that I just released - in the samples/s2 directory. It demonstrates MQ 1-phase transactions. Suitable where there are no other participants.