On Thu, Feb 28, 2013 at 9:53 AM, Richa <rsinha2...@gmail.com> wrote: > 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. >
I guess the exception is thrown from somewhere else. Maybe later if you use the endpoint to create a consumer, and that fails, or when starting the consumer. > > > -- > 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. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen