MCIA - Level 1 Exam QuestionsBrowse all questions from this exam

MCIA - Level 1 Exam - Question 23


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?

Show Answer
Correct Answer: A

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.

Discussion

8 comments
Sign in to comment
AJ_SL
Nov 3, 2021

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

madgeezerOption: A
Aug 4, 2022

A. The time that is allowed to pass without the transaction being ended explicitly After the timeout, the transaction is forcefully rolled-back

Rahul1387
Jul 23, 2021

any reference document for this? Mule Docs doesn't have this info.

mgwuOption: A
Aug 29, 2021

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.

mgwu
Aug 29, 2021

https://stackoverflow.com/questions/35941245/bitronix-exceptions-when-sending-jms-to-activemq-muleesb

Ella_ZOption: A
Sep 3, 2021

A is correct

GrumpOption: A
Dec 26, 2021

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.

bkahramanOption: A
Mar 31, 2024

https://docs.mulesoft.com/mule-runtime/latest/xa-transactions