Atomikos Forum

2 Phase Commit

We have the 2phase commit setup as below in my project.

        <property name="connectionFactory" ref="..." />
        <property name="destination" ref="..." />
        <property name="messageListener" ref="..." />
        <property name="concurrentConsumers" value="1" />
        <property name="maxConcurrentConsumers" value="${...}" />
        <property name="transactionManager" ref="txManager" />
        <property name="sessionTransacted" value="true"/>
        <property name="sessionAcknowledgeMode" value="0"/>    

JTA Transaction timeout is set for 50 minutes.

We receive the message and the application process is taking more than 50 minutes and thus throwing the below Timeout Error:

[Atomikos:5] ActiveStateHandler:12 - Rollback of timedout ACTIVE coordinator !

Then the incoming message is again replayed once the processing is complete. This replaying is keep on repeating as the process is crossing the JTA Timeout threshold set as 50 mints.

We need to commit the incoming message even when there is a timout error happens. So that the incoming message will not get replayed.

Please put me into right track on this issue. Thanks.
Amarnath Kumarasami Send private email
Wednesday, March 27, 2013
 
 
Either you put a higher timeout (although it seems very high already), or you set a redelivery limit on the queue manager (system-dependent, check your queue vendor documentation).

HTH
Guy Pardon Send private email
Saturday, March 30, 2013
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics