Hi You want to keep retry forever if B is down during shutdown of Camel? You can set the timeout period to be 0 or a negative value. Then it runs forever until it can shutdown without any inflight messages. http://camel.apache.org/graceful-shutdown.html
On Thu, Aug 23, 2012 at 10:56 AM, towe <tobias.westerb...@cubeia.com> wrote: > I am trying to set up a camel route that forwards jms messages from one > persistent (local) queue to another remote jms queue. > > If the remote connection is down the incoming message should be left on the > in-queue. > > I managed to get this to work using transactions. But the problem I have now > is that doing a graceful shutdown removes the in-flight messages (after > timing out on the DefaultShutdownStrategy). > > Killing the Camel process the hard way (kill -9) preserves the messages on > the queue, which is what I want. > > To summarize, what I want is: > 1. forward from queue A to queue B > 2. rollback A (leave in queue) if B is down > 3. repeat trying forever > 4. to be able to shutdown camel without dropping in-flight messages > > /tw > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/shutting-down-Camel-in-flight-messages-gone-tp5717930.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen