how do transactions work with activemq artemis core?

There is no method to “start” a transaction with an Artemis core ClientSession. If autoCommitSends or autoCommitAcks is false then any send or ack performed by the session once it is created will be a part of the transaction until commit() or rollback() is called. Based on the values set for autoCommitSends and autoCommitAcks both sending and acking can be a part of the same transaction or just one or the other.

If autoCommit is true for either sends or acks then calling commit() or rollback() won’t have any functional impact on the corresponding operation. However, the client will still send the command to the broker and wait for the broker’s response. It’s the client’s responsibility not to invoke these operations unless it’s actually necessary.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top