Hi all,

Does Camel provide error handling support for MessageProducer.send
invocations that behave *asynchronously*?
For example, lets have a look at the the following route:
*from(endpoint).errorHandler(errorHandlerFactory).to(jms:topic:myTopicName)*
We assume that the topic myTopicName does not exist and the JMS Provider
does not support automatic topic creation. The purpose of the Error Handler
in this case would be to handle the InvalidDestinationException/JMSException
exceptions that are about to be thrown.
*Use case 1*: javax.jms.MessageProducer.send implementation performs
synchronous emit -> the send method thrown an Exception that is caught be
the Error handler and the configured Redelivery Policy is successfully
applied by the error handler.
*Use case 2*: javax.jms.MessageProducer.send implementation performs
asynchronous emit -> no exception is thrown from the send method, but the
Exception is passed to the Connection's ExceptionListener(if specified)
instead. So, the question is: is there some configuration of the error
handling that could be applied in such cases?
How does the Apache ActiveMQ implementation of MessageProducer.send behave? 
Is the synchronous emit the default behavior according to the JMS spec (That
is my opinion, but I would like to see your comments/thoughts)?

Thanks very much for your comments!

(If my questions have been already discussed in an another topic, please,
excuse me, and redirect me to this topic - I could not find such one!)

Best regards,
Atanas



--
View this message in context: 
http://camel.465427.n5.nabble.com/ErrorHandling-support-for-asynchronous-JMS-producers-tp5728335.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to