An XA transaction is being configured that involves a JMS connector listening for incoming JMS messages.
What is the meaning of the timeout attribute of the XA transaction, and what happens after the timeout expires?
An XA transaction is being configured that involves a JMS connector listening for incoming JMS messages.
What is the meaning of the timeout attribute of the XA transaction, and what happens after the timeout expires?
The timeout attribute of an XA transaction determines the period allowed to pass without the transaction being explicitly concluded. If this duration expires, the transaction is forcefully rolled back. This ensures that transactions do not hang indefinitely and maintains system stability by rolling back incomplete transactions after the defined timeout period.
https://docs.mulesoft.com/mule-runtime/3.7/xa-transactions refer this and answer is there - > https://docs.mulesoft.com/mule-runtime/3.7/jboss-transaction-manager-reference
A. The time that is allowed to pass without the transaction being ended explicitly After the timeout, the transaction is forcefully rolled-back
https://docs.mulesoft.com/mule-runtime/latest/xa-transactions
It should be A. Basic XA Transaction timeout definition. Transaction rolls back after timeout. The only confusing part is "explicitly". You can image as transaction being ended explicitly when the scope finishes without an exception, at which point transaction commits.
A is correct
https://stackoverflow.com/questions/35941245/bitronix-exceptions-when-sending-jms-to-activemq-muleesb
Mule polls for JMS messages with a polling timeout same as the configured xa transaction timeout (default:60 Secs). So, the polling thread waits a maximum of 60 seconds for a message to arrive in the queue. XA trnsaction begins the moment polling starts. Consider a scenario where the polling thread receives the message very close to the polling timeout ; say at 59th second (XA Transaction is close to timeout here because it began when polling was initiated) . If message processing takes another 5 seconds, total time of the XA Transaction will be 64 seconds (59 +5). Before the processing finishes, transaction manager kills the transaction because it exceeded the XA timeout.
any reference document for this? Mule Docs doesn't have this info.