Hello all,

As you know, ActiveMQ supports the following functionality:
If a client subscribes to a topic that currently does not exists on the JMS
provider, then this topic is automatically created and bound to the JMS
provider.

However, the JMS provider that we currently use, does not support this
functionality. 

And here comes the problem - when I create a route from a topic that does
not exist on the JMS provider, I expect to get a JMSException notifying
about the non existing destination. Unfortunately, this does not happen.
I've managed to configure the Camel context to inform me if the JMS provider
is down by setting the "testConnectionOnStartup" property of the JMS
component. It works just fine. But when I set this property and create a
route from a topic that does not exist no exception is thrown.

I've tried using try/catch blocks, onException and errorhandlers, but it
does not work since no exchange is ever created and all these techniques are
designed to handle errors that are thrown during the processing of messages.
In my case, no message is ever sent.

Is there anyway to catch these exceptions?

Thanks for your help!

Best regards,
Atanas

--
View this message in context: 
http://camel.465427.n5.nabble.com/Routing-from-non-existing-JMS-topics-tp5508426p5508426.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to