camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ben1729 <bmumf...@scottlogic.co.uk>
Subject Protecting route against crashes
Date Sun, 16 Sep 2012 17:34:32 GMT
Hi all,

I have a route that looks something like this, running in ServiceMix
(v4.4.2):

from("jms:queue:start")
    // Message processing
    .("jms:queue:end");

I would like to protect against the server crashing whilst processing this
route so that if the message is not lost in transit. What is the best way to
do this from within an OSGi environment? I would like the message to appear
back in the jms start queue in it's original format if the server goes down
so that when it comes back up it can continue it's journey. 

I have seen there is transaction support but I am unsure how to set this up
in ServiceMix (all examples I have found are outside the OSGi environment).
How do I configure this? 

Could I use CLIENT_ACKNOWLEDGE? If so how do I configure the JmsComponent
and how do I programmatically acknowledge the message (is there a
acknowledge() method)?

Thanks in advance.

Ben



--
View this message in context: http://camel.465427.n5.nabble.com/Protecting-route-against-crashes-tp5719438.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message