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?
A.
The time that is allowed to pass without the transaction being ended explicitly After the timeout, the transaction is forcefully rolled-back
B.
The time that is allowed to pass for stale JMS consumer threads to be destroyed After the timeout, a new JMS consumer thread is created
C.
The time that is allowed to pass between receiving JMS messages on the same JMS connection After the timeout, a new JMS connection is established
D.
The time that is allowed to pass between committing the transaction and the completion of the Mule flow After the timeout, flow processing triggers an error
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.
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
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.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
bkahraman
7 months, 4 weeks agomadgeezer
2 years, 3 months agoGrump
2 years, 11 months agoAJ_SL
3 years agoElla_Z
3 years, 2 months agomgwu
3 years, 2 months agomgwu
3 years, 2 months agoRahul1387
3 years, 4 months ago