camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Need help in java.net.ConnectException: Connection refused
Date Fri, 15 Jun 2012 02:09:31 GMT
It looks like the exception is throw before it is ready to consume the 
message. I doubt the ErrorHandler can do this work.
Maybe you should wrap the jms connector to catch this kind of error.

On 6/14/12 5:44 PM, vargjohn wrote:
> Hi All,
>
> I have an application which has a camel server running and listening to
> activemq server at port number 61616.
>
> When the camel server is running, the activemq server should also be running
> at the same time to listen to the messages.
>
> When the activemq is not started i am getting the below exception.
>
> "Could not connect to broker URL: tcp://localhost:61616. Reason:
> java.net.ConnectException: Connection refused"
>
> Instead of showing the above exception, i need to show a meaningful message
> to the user something like please restart the activemq server, how do i
> achieve this, Can anyone give me a solution for this exception.
>
> Thanks&  Regards,
> John
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Need-help-in-java-net-ConnectException-Connection-refused-tp5714476.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Mime
View raw message