On Thu, Aug 23, 2012 at 2:09 PM, towe <tobias.westerb...@cubeia.com> wrote:
> Hi,
>
> Not really, I want to be able to shutdown immediately (or with a small
> timeout). Any message picked up from A must be rolled back and stay in the
> queue.
>
> If I have the a of 5s Camel will keep trying to resend until timeout. Then
> it drops the message. But I want it to be left in A (as it has not been
> successfully delivered yet).
>
> Now I can't stop Camel when it is in the process of redelivering a message
> without losing it.
>

You are using the redelivery of the message broker and with transacted
ack mode of JMS,
then the message will not be lost, as its kept in the broker, also
during redelivery.



> /tw
>
>
> Claus Ibsen-2 wrote
>>
>> 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 &lt;tobias.westerblom@&gt; 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: cibsen@
>> Web: http://fusesource.com
>> Twitter: davsclaus, fusenews
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/shutting-down-Camel-in-flight-messages-gone-tp5717930p5717938.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

Reply via email to