Re: why my Processor throw Exception but producer can't throw it

2011-09-21 Thread Willem Jiang
I suggest you to use the RouteBuilder to define the route with Java DSL. It's the normal way that we do it, On Tue Sep 20 21:18:50 2011, xiangqiuzhao wrote: camelContext.addRouteDefinition(someRouteDefinition); i look the camelContext and routeDefinition had exception handler, i has no set exc

Re: why my Processor throw Exception but producer can't throw it

2011-09-20 Thread xiangqiuzhao
camelContext.addRouteDefinition(someRouteDefinition); i look the camelContext and routeDefinition had exception handler, i has no set exception handler on these, what the default action when the route processor throws exception. and where i need to set exception handler? my route defined: Rou

Re: why my Processor throw Exception but producer can't throw it

2011-09-20 Thread Willem Jiang
On 9/20/11 12:23 PM, xiangqiuzhao wrote: Producer producer = endpoint.createProducer(); producer.process(exchange); //throw an Exception return (Map)exchange.getOut().getBody(); //why run to here? my route defined from("direct://test").process(ProcesssA).to("myComponent://").pro

Re: why my Processor throw Exception but producer can't throw it

2011-09-20 Thread Claus Ibsen
Hi Can you be a bit more precise what the problem is? Its not totally clear from the code snippets and your description. And what version of Camel are you using? On Tue, Sep 20, 2011 at 6:23 AM, xiangqiuzhao wrote: > Producer producer = endpoint.createProducer(); > producer.process(exchange); /

why my Processor throw Exception but producer can't throw it

2011-09-19 Thread xiangqiuzhao
Producer producer = endpoint.createProducer(); producer.process(exchange); //throw an Exception return (Map)exchange.getOut().getBody(); //why run to here? my route defined from("direct://test").process(ProcesssA).to("myComponent://").process(ProcessB); if my ProcessA th