Removing routes programmatically

2011-07-06 Thread Daniel Spaven
Hi, I've been having some problems removing routes programmatically. My routes use camels CBR pattern to route JMS messages. I remove them using the code: context.stopRoute(routeIDString); context.removeRoute(routeIDString); Now the problem is not that the route is not removed it is, but

Re: Removing routes programmatically

2011-07-06 Thread Ashwin Karpe
http://camel.465427.n5.nabble.com/Removing-routes-programmatically-tp4556741p4557011.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Removing routes programmatically

2011-07-06 Thread Ashwin Karpe
e in context: http://camel.465427.n5.nabble.com/Removing-routes-programmatically-tp4556741p4557040.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Removing routes programmatically

2011-07-06 Thread Claus Ibsen
On Wed, Jul 6, 2011 at 3:15 PM, Daniel Spaven wrote: > Hi, > > I've been having some problems removing routes programmatically. My routes > use camels CBR pattern to route JMS messages. I remove them using the code: > > context.stopRoute(routeIDString); > context

Re: Removing routes programmatically

2011-07-06 Thread Ashwin Karpe
t: http://camel.465427.n5.nabble.com/Removing-routes-programmatically-tp4556741p4557219.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Removing routes programmatically

2011-07-06 Thread Daniel Spaven
) > http://fusesource.com > > Blog: http://opensourceknowledge.blogspot.com > - > -- > View this message in context: > http://camel.465427.n5.nabble.com/Removing-routes-programmatically-tp4556741p4557219.html > Sent from the Camel - Users mailing list archive at Nabble.c

Re: Removing routes programmatically

2011-07-06 Thread Daniel Spaven
I understand that it might be hard to debug from this class alone, so if you want me to adapt the class and plug in the run-time values that are failing in my tests I can do that tomorrow. Dan

Re: Removing routes programmatically

2011-07-06 Thread Claus Ibsen
On Wed, Jul 6, 2011 at 11:25 PM, Daniel Spaven wrote: > I understand that it might be hard to debug from this class alone, so if you > want me to adapt the class and plug in the run-time values that are failing > in my tests I can do that tomorrow. > > Dan > Yeah it would be nice with a runtime e

Re: Removing routes programmatically

2011-07-06 Thread Claus Ibsen
cipal Consultant > FUSESource (a Progress Software Corporation subsidiary) > http://fusesource.com > > Blog: http://opensourceknowledge.blogspot.com > ----- > -- > View this message in context: > http://camel.465427.n5.nabble.com

Re: Removing routes programmatically

2011-07-07 Thread Daniel Spaven
Hey chaps, Just had another look at this and made some progress. Now my routes were from JMS to JMS and not with two inputs. However that did get me thinking because I was testing CBR routes consuming from the same JMS topic. When CBR routes are consuming off different topics it works fine. Here

Re: Removing routes programmatically

2011-07-07 Thread Ashwin Karpe
Blog: http://opensourceknowledge.blogspot.com - -- View this message in context: http://camel.465427.n5.nabble.com/Removing-routes-programmatically-tp4556741p4561373.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Removing routes programmatically

2011-07-07 Thread Claus Ibsen
On Thu, Jul 7, 2011 at 2:56 PM, Daniel Spaven wrote: > Hey chaps, > > Just had another look at this and made some progress. > > Now my routes were from JMS to JMS and not with two inputs. > > However that did get me thinking because I was testing CBR routes consuming > from the same JMS topic. Whe

Re: Removing routes programmatically

2011-07-07 Thread Ashwin Karpe
mmitter & Sr Principal Consultant FUSESource (a Progress Software Corporation subsidiary) http://fusesource.com Blog: http://opensourceknowledge.blogspot.com - -- View this message in context: http://camel.465427.n5.nabble.com/Removing-routes-programmatically-tp4556741p4561468.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Removing routes programmatically

2011-07-07 Thread Daniel Spaven
void configure() throws Exception { > > > from("seda:foo?multipleConsumers=true").routeId("foo").to("log:foo").to("mock:result"); > > > from("seda:foo?multipleConsumers=true").routeId("bar").to("log:foo").to("mock:result"); > } >}; >} > } > > - > - > Ashwin Karpe > Apache Camel Committer & Sr Principal Consultant > FUSESource (a Progress Software Corporation subsidiary) > http://fusesource.com > > Blog: http://opensourceknowledge.blogspot.com > - > -- > View this message in context: > http://camel.465427.n5.nabble.com/Removing-routes-programmatically-tp4556741p4561468.html > Sent from the Camel - Users mailing list archive at Nabble.com. >

Re: Removing routes programmatically

2011-07-08 Thread Claus Ibsen
ew RouteBuilder() { >>            @Override >>            public void configure() throws Exception { >> >> >> from("seda:foo?multipleConsumers=true").routeId("foo").to("log:foo").to("mock:result"); >> >> >> from

Re: Removing routes programmatically

2011-07-08 Thread Daniel Spaven
Claus, Yes that's it. Here's the URI's of 2 routes I just tested and failed. So Destinations different but consuming from the same topic. Route 1 --- from(jmsComponent:topic:dansTopic) to(activemq:topic:TMLP1) to(activemq:topic:TMLP2) to(activemq:topic:TMLP3) to(activemq:topic:TMLP4) Rou

Re: Removing routes programmatically

2011-07-08 Thread Claus Ibsen
Hi I have reproduced the issue in camel-jms in an unit test. I will try to see what can be done. On Fri, Jul 8, 2011 at 11:37 AM, Daniel Spaven wrote: > Claus, > > Yes that's it. Here's the URI's of 2 routes I just tested and failed. So > Destinations different but consuming from the same topic.

Re: Removing routes programmatically

2011-07-08 Thread Claus Ibsen
Hi Okay i have fixed the issue. I created a new ticket with a better description of the real issue https://issues.apache.org/jira/browse/CAMEL-4194 The fix will be in Camel 2.8. You are welcome to test with latest source code from trunk or the 2.8-SNAPSHOT when its updated. http://camel.apache.or

Re: Removing routes programmatically

2011-07-08 Thread Daniel Spaven
Okay that's nice to hear, I'll download when fixed. Thanks! On Fri, Jul 8, 2011 at 11:52 AM, Claus Ibsen wrote: > Hi > > Okay i have fixed the issue. I created a new ticket with a better > description of the real issue > https://issues.apache.org/jira/browse/CAMEL-4194 > > The fix will be in Ca

Re: Removing routes programmatically

2016-05-27 Thread Manohar Shenoy
iew this message in context: http://camel.465427.n5.nabble.com/Removing-routes-programmatically-tp4556741p5783160.html Sent from the Camel - Users mailing list archive at Nabble.com.