camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Babak Vahdat <babak.vah...@swissonline.ch>
Subject Re: Need help in java.net.ConnectException: Connection refused
Date Fri, 15 Jun 2012 06:54:37 GMT
Maybe this could be one possible way:

Using plain Java Socket API write a bean which only does try to connect on
localhost port 61616 inside your Camel route and rethrows the exception if
java.net.ConnectException with the message "Connection refused" is thrown so
that your onException clause get's kicked in.

Babak

--
View this message in context: http://camel.465427.n5.nabble.com/Need-help-in-java-net-ConnectException-Connection-refused-tp5714476p5714526.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message