camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erwan Guiochet <erwan.guioc...@free.fr>
Subject Activemq inOnly producer Exception
Date Mon, 10 Jun 2013 12:41:08 GMT
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.

Mime
View raw message