Hello all,

I am trying to use the client_acknowledge mode instead of using transacted
mode.
My route looks like this:

<onException>
        <exception>com.my.exception.Exception</exception>
        <redeliveryPolicy maximumRedeliveries="2" redeliveryDelay="3000"/>
        <to uri="myErrorHandler" />
</onException>

<route>
        <from
uri="pns-jms:queue:MYQUEUE?concurrentConsumers=20&amp;acknowledgementModeName=CLIENT_ACKNOWLEDGE"
/>
        <to uri="processMessage" />
</route>


I know that if the message gets processed completely by the route, the ack
will be sent to the queue. However, is there a way to not send the ack to
the queue if I catch an exception (com.my.exception.Exception)? I would
still like to process that message but do not want to send ack to the queue.
Is there any way to do this without using transacted mode?

Thank you,
Wan





--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-JMS-client-acknowledge-mode-tp5720874.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to