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 <[email protected]>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.
>

Reply via email to