You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Erwan Guiochet <er...@free.fr> on 2013/06/10 14:41:08 UTC
Activemq inOnly producer Exception
Hi all,
I'm trying to have an inOnly pattern and catch exception thrown by an
activemq producer in an inOnly pattern. (ex: Usage Manager Memory Limit
reached. Stopping producer (ID:...) to prevent flooding ...)
Like this: HTTP -> CAMEL -> ActiveMQ ...
<route>
<from uri="direct:myRoute"/>
...
<inOnly to="activemq:queue:myQueue"/>
</route>
In this case Camel won't catch exception thrown by the producer if memory
limits have been reached.
if i want to get it i must change "inOnly" to "to", but then i loose
asynchronous processing.
I have tried to put "?disableReplyTo=true" on my consumer and "to" for
producer, but i take a time out because camel wait for a response (because
of the "to').
I'm sure it should be simple to resolve but i didn't find solution in docs.
Thanks for your help !
Erwan
--
View this message in context: http://camel.465427.n5.nabble.com/Activemq-inOnly-producer-Exception-tp5734063.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Activemq inOnly producer Exception
Posted by Erwan Guiochet <er...@free.fr>.
Hi,
Thanks your response but the exception listener will be used in an async
mode.
Finally found a solution by changing an activemq property:
http://tmielke.blogspot.fr/2011/11/loosing-messages-despite-of-sending.html
With this i can keep my inOut in camel and get the error when producer
failed to push the message.
Erwan
--
View this message in context: http://camel.465427.n5.nabble.com/Activemq-inOnly-producer-Exception-tp5734063p5734793.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Activemq inOnly producer Exception
Posted by Christian Müller <ch...@gmail.com>.
Did you try using the "exceptionListener" option as described here [1]?
[1] http://camel.apache.org/jms.html
Best,
Christian Müller
-----------------
Software Integration Specialist
Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html
https://www.linkedin.com/pub/christian-mueller/11/551/642
On Mon, Jun 10, 2013 at 2:41 PM, Erwan Guiochet <er...@free.fr>wrote:
> Hi all,
>
> I'm trying to have an inOnly pattern and catch exception thrown by an
> activemq producer in an inOnly pattern. (ex: Usage Manager Memory Limit
> reached. Stopping producer (ID:...) to prevent flooding ...)
>
> Like this: HTTP -> CAMEL -> ActiveMQ ...
>
> <route>
> <from uri="direct:myRoute"/>
> ...
> <inOnly to="activemq:queue:myQueue"/>
> </route>
>
> In this case Camel won't catch exception thrown by the producer if memory
> limits have been reached.
> if i want to get it i must change "inOnly" to "to", but then i loose
> asynchronous processing.
>
> I have tried to put "?disableReplyTo=true" on my consumer and "to" for
> producer, but i take a time out because camel wait for a response (because
> of the "to').
>
> I'm sure it should be simple to resolve but i didn't find solution in docs.
>
> Thanks for your help !
>
> Erwan
>
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Activemq-inOnly-producer-Exception-tp5734063.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>