Thank you for your reply claus. I am using camel 2.10.2. It's a normal java function. The function returns the JmsEndpoint which I later use in my route. But even though I put try catch block, I get this exception thrown out. Apparently the code does not go to the catch block. Currently my catch block is: catch(Exception e) { System.out.println("Error"); } But even if I put JMSException or ConnectException I get an error in my code that the catch block is unreachable. Please help me in solving this issue.
-- View this message in context: http://camel.465427.n5.nabble.com/Endpoint-configuration-error-tp5728272p5728288.html Sent from the Camel - Users mailing list archive at Nabble.com.