The way to do this with messaging is either to rollback (to effectively
cancel consuming it) or send the message again


On 12 September 2013 07:56, Cecilio Alvarez <cecilio.alva...@hotmail.com>wrote:

> Hi,
> is possible to consume a message from a queue in ActiveMQ and keep it in
> the
> queue for the next consumption of the same consumer? And is possible to
> override a message? I know that is not the goal of Camel and ActiveMQ. But
> I'm trying to use INOUT pattern and keep the message for future use.
> Something like:
> <route>
>         <from uri="file://c:/temp/in"/>
>         <to uri="activemq:example.A"/>
> </route>
>
> <route>
>        <from uri="timer...."/>
>        <to uri="activemq:example.INOUT" pattern="InOut"/><--here got the
> message from example.A
>         <to uri="......"/>
> </route>
>
> <route>
>         <from uri="activemq:example.INOUT"/>
>
>         <process ref="consume"/><-----here consume from example.A
> </route>
>
>
> This works, but consume the message. And I would like to keep it in the
> queue example.A
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Keep-the-same-message-in-a-queue-after-consuming-it-tp5739214.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
James
-------
Red Hat

Email: jstra...@redhat.com
Web: http://fusesource.com
Twitter: jstrachan, fusenews
Blog: http://macstrac.blogspot.com/

Open Source Integration

Reply via email to