You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sa_james <sa...@hotmail.com> on 2016/12/01 13:55:07 UTC
Throwing Disconnected Exception with camel-sjms
The ride continues between camel-jms and camel-sjms
While consuming from a jms-queue, I would like to log exceptions when the
queue has crashed. When I disconnect the queue from the network, camel-sjms
does not thrown any exception. How can I do that? I tried with
/ onException(Exception.class)
.to("log:jms?level=ERROR");/
nothing is showing.
How can I monitor my application in case the server has gone down so that I
can alert the staff of a problem?
Thx.
--
View this message in context: http://camel.465427.n5.nabble.com/Throwing-Disconnected-Exception-with-camel-sjms-tp5790882.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Throwing Disconnected Exception with camel-sjms
Posted by sa_james <sa...@hotmail.com>.
It seems the right way
<http://camel.465427.n5.nabble.com/stand-alone-problem-tp5790885.html> to
run a camel application is by using /main.run()/ instead of /main.start()/
It solved almost all of my problems.
--
View this message in context: http://camel.465427.n5.nabble.com/Throwing-Disconnected-Exception-with-camel-sjms-tp5790882p5790899.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Throwing Disconnected Exception with camel-sjms
Posted by sa_james <sa...@hotmail.com>.
In case you wonder about the route, it is really simple:
/from("jms:TEST")
.to("log:test")/
Thx.
--
View this message in context: http://camel.465427.n5.nabble.com/Throwing-Disconnected-Exception-with-camel-sjms-tp5790882p5790883.html
Sent from the Camel - Users mailing list archive at Nabble.com.