Modifying route using adviceWith showing inconsistent behaviour

2011-02-07 Thread Sumit Teke
Hello, We have a system where we want to monitor all the exchanges flowing throw camel pipeline (track completed, inprogress, failed exchanges). *Camel context are added at runtime*. We want enrich pipeline to trigger start and end of work flow, also add error handler to pipeline. Start int

Re: Modifying route using adviceWith showing inconsistent behaviour

2011-02-07 Thread Ashwin Karpe
.com - -- View this message in context: http://camel.465427.n5.nabble.com/Modifying-route-using-adviceWith-showing-inconsistent-behaviour-tp3374110p3374232.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Modifying route using adviceWith showing inconsistent behaviour

2011-02-07 Thread Ashwin Karpe
.com - -- View this message in context: http://camel.465427.n5.nabble.com/Modifying-route-using-adviceWith-showing-inconsistent-behaviour-tp3374110p3374231.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Modifying route using adviceWith showing inconsistent behaviour

2011-02-07 Thread Sumit Teke
Hi Ashwin, Thanks for your reply. adviceRoute javadocs mentioned "Will stop and remove the old route from camel context and add and start this new advised route." When tried with restarting camel context, got NPE while advice route for start interception Exception in thread "main" java.lan

Re: Modifying route using adviceWith showing inconsistent behaviour

2011-02-07 Thread Ashwin Karpe
http://fusesource.com Blog: http://opensourceknowledge.blogspot.com http://opensourceknowledge.blogspot.com - -- View this message in context: http://camel.465427.n5.nabble.com/Modifying-route-using-adviceWith-showing-inconsistent-behav

Re: Modifying route using adviceWith showing inconsistent behaviour

2011-02-07 Thread Sumit Teke
Hi Ashwin, Sorry i think, i was not clear in last post. I understand that stopping camel context will stop all the routes. What i did was *Test 1: *Tried stopping camel context and then modified routes and again started the context /CamelContext camelContext = (CamelContext) context.getBea

Re: Modifying route using adviceWith showing inconsistent behaviour

2011-02-08 Thread Sumit Teke
Still not able to find a way. Can anyone help please. Thanks, Sumit Teke On Tuesday 08 February 2011 10:20 AM, Sumit Teke wrote: Hi Ashwin, Sorry i think, i was not clear in last post. I understand that stopping camel context will stop all the routes. What i did was *Test 1: *Tried stop

Re: Modifying route using adviceWith showing inconsistent behaviour

2011-02-11 Thread Claus Ibsen
On Wed, Feb 9, 2011 at 8:32 AM, Sumit Teke wrote: >  Still not able to find a way. Can anyone help please. > People in the community do not always have time to help everybody with everything. So be patient. If you want someone to help you asap, then you can engage with a commercial vendor or con

Re: Modifying route using adviceWith showing inconsistent behaviour

2011-02-14 Thread Claus Ibsen
Hi You should create the exchange using the endpoint, eg like this Exchange exchange1 = context.getEndpoint("direct://start").createExchange(); But often its much easier just to use the template context.createProducerTemplate().sendBody("direct://start", "The body here"); And a rule of

Re: Modifying route using adviceWith showing inconsistent behaviour

2011-02-14 Thread Sumit Teke
Thanks for your reply. Tried changing creation of exchange but didnt help. Have added a test case "TestLoad". Attached maven project. Thanks, Sumit Teke Omniscient Software Pvt Ltd T. +91-20-26680814, Ext. 217 F. +91-20-26680815, Ext. 212 M. +91-9975709032 E. sumit_t...@omniscient.co.in On