camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lye <>
Subject Help needed: how to use Camel JMS Client Acknowledge mode for queue consumption
Date Thu, 24 Aug 2017 17:24:10 GMT
Hi, Claus, Willem and Camel Friends. I need some help with jms
acknowledgementModeName client acknowledge. I tried the following code, but
it always auto acknowledged whenever a message is dropped to the queue (IBM
websphere MQ) 

Use case: read a message from the MQ without removing it from the queue.
Then process the message. If no exception is thrown during the entire
processing route, then acknowledge it. Otherwise, keep it in the queue. 

<route id="Case-Request-Queue-Consumer-Route">

                        <bean ref="unMarshallMessage" />
                        <to uri="direct:processMessage" />


When the message reaches unMarshallMessage processor bean, it's removed from
the queue. 

Please let me know what I need to change. I tried searching for client
acknowledge mode sample code, but couldn't find much info. Any thoughts or
sample code will be greatly appreciated! 

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message