简体   繁体   中英

IBM MQ Java - transactions

On a MQQueueManager there doesn't seem to be a concept of a named transaction.

We only have a commit() / backout() method.

If I want 2 concurrent transactions then I must create 2 MQQueueManager connections.

This doesn't seem right. You wouldn't for example create 2 JDBC connections for 2 separate transactions.

Have I missed something?

As far as i know, the session controls the transaction. So you can use the same connection object, but you need to create two sessions from it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM