Exam MCIA - Level 1 All QuestionsBrowse all questions from this 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?

    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
AJ_SL

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

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

bkahramanOption: A

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

GrumpOption: A

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.

Ella_ZOption: A

A is correct

mgwu

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

mgwuOption: A

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.

Rahul1387

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