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. Code: <route id="Case-Request-Queue-Consumer-Route"> <from uri="wmq:queue:{{mq}}?maxConcurrentConsumers={{maxConsumer}}&acknowledgementModeName=CLIENT_ACKNOWLEDGE" /> <bean ref="unMarshallMessage" /> <to uri="direct:processMessage" /> </route> 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: http://camel.465427.n5.nabble.com/Help-needed-how-to-use-Camel-JMS-Client-Acknowledge-mode-for-queue-consumption-tp5812049.html Sent from the Camel - Users mailing list archive at Nabble.com.