Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

camel wmq transactions - ack mode as TRANSACTED

$
0
0
Hi Team,

Please find the below scenarios or camel route

from("wmq:queue:eventQueue + "?useMessageIDAsCorrelationID=true")
.transacted()
.bean(orchestrator, "processMessage(${body}, ${headers})");

and for transaction i am maintaining JmsTransactionManager. please find the
same. actually i have gone through Chapter 9 in the Camel in Action book.
based on that I configured txn.

<bean id="wmq" class="org.apache.camel.component.jms.JmsComponent">
<property name="transacted" value="true" />
<property name="transactionManager" ref="txManager" />
</bean>
<bean id="txManager"
class="org.springframework.jms.connection.JmsTransactionManager">
<property name="connectionFactory" ref="wmqConnectionFactory" />
</bean>

Now in Chapter 9 in the Camel in Action book, author mentioned about
ACTIVEMQ.DLQ, but what will happen in case of Websphere MQ.
My requirement is if at all processMessage(${body}, ${headers}) fails to
process and throws exception , camel should not acknowledge and message
should be there as it is inside WMQ.

Could you please help me for the same.

Thanks
Satyajit

Viewing all articles
Browse latest Browse all 5648

Trending Articles