Been playing around and did find that when using the
jmsComponentClientAcknowledge method and the process method throws an
Exception that the JMS Message is indeed left on the JMS Queue.
In the case where jmsComponentAutoAcknowledge is used the JMS Message is
removed from the JMS Queue even with an Exception being thrown.
Here is the sample Processor I used:
public class ProcessMessageForceError implements Processor{
@Override
public void process(Exchange exchange) throws Exception {
Message m = exchange.getIn();
log.info("Testing Error: (body): " + m.getBody());
throw new Exception("Forcing Error to see what
happens");
}
}
So is there no way in Camel to leave the JMS Message on the JMS Queue unless
the JMS Message acknowledge method called or do we need to force an
Exception to get this behavior.
Thanks,
Mike
--
View this message in context:
http://old.nabble.com/Camel-and-JMS-Client-Ack-Mode--tp27152146p27163731.html
Sent from the Camel - Users mailing list archive at Nabble.com.