You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by viktornordling <vi...@gmail.com> on 2011/09/05 07:50:11 UTC

Detecting server up to redeliver failed messages

Hello,

I'm using Camel to post messages to a JMS (ActiveMQ). If the server is down,
I want to store them locally until the server comes up again. When it's up,
I want to redeliver all failed messages.

Any ideas for how to achieve this?

Best regards,
Viktor Nordling

--
View this message in context: http://camel.465427.n5.nabble.com/Detecting-server-up-to-redeliver-failed-messages-tp4769315p4769315.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Detecting server up to redeliver failed messages

Posted by Claus Ibsen <cl...@gmail.com>.
On Mon, Sep 5, 2011 at 7:50 AM, viktornordling
<vi...@gmail.com> wrote:
> Hello,
>
> I'm using Camel to post messages to a JMS (ActiveMQ). If the server is down,
> I want to store them locally until the server comes up again. When it's up,
> I want to redeliver all failed messages.
>
> Any ideas for how to achieve this?
>

You can enable sync sending, which mean in case the send fails the
client will get an exception
http://activemq.apache.org/async-sends.html

You could possible also embed a AMQ broker in the client, to have a
network of brokers, which mean that the brokers uses "store and
forward", meaning as a client developer, you don't need to develop a
store and redeliver solution yourself.
http://activemq.apache.org/terminology.html

You may get better answers at the AMQ user forum as this kind of
questions is mostly related to AMQ than Camel.


> Best regards,
> Viktor Nordling
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Detecting-server-up-to-redeliver-failed-messages-tp4769315p4769315.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: Detecting server up to redeliver failed messages

Posted by David Karlsen <da...@gmail.com>.
Configure the errorhandler to write to å file: dead letter channel - you may
then scan this directory for files and attempt resending.
Den 5. sep. 2011 08:07 skrev "viktornordling" <vi...@gmail.com>
følgende:
> Hello,
>
> I'm using Camel to post messages to a JMS (ActiveMQ). If the server is
down,
> I want to store them locally until the server comes up again. When it's
up,
> I want to redeliver all failed messages.
>
> Any ideas for how to achieve this?
>
> Best regards,
> Viktor Nordling
>
> --
> View this message in context:
http://camel.465427.n5.nabble.com/Detecting-server-up-to-redeliver-failed-messages-tp4769315p4769315.html
> Sent from the Camel - Users mailing list archive at Nabble.com.