Re: Looping in routes using Direct Component - Performance impact?

2016-10-14 Thread Vitalii Tymchyshyn
I think you would get into a recusion this way and end up with stack overflow. You should try http://camel.apache.org/dynamic-router.html Best regards, Vitalii Tymchyshyn 13 жовт. 2016 р. 18:31 "Goyal, Arpit" пише: > Hi, > > We currently are on 2.16.3 version and can't use the loop function (pa

Re: Looping in routes using Direct Component - Performance impact?

2016-10-14 Thread Claus Ibsen
Hi Yes if you loop 1000 times (or alot) then message history will take up memory on the exchange as each step in the routes is recored by default. You can turn this off http://camel.apache.org/message-history.html But as Brad says its not ideal to keep looping in Camel routes as they are not inte

Re: Looping in routes using Direct Component - Performance impact?

2016-10-14 Thread Brad Johnson
> - set / get camel exchange property (so far single) > - saw annotation ExchangeProperty, but it has String type return > value. Whereas on exchange we are setting Objects. > > Regards, > Arpit. > > > -Original Message----- > From: Brad Johnson [mailto:brad.john

RE: Looping in routes using Direct Component - Performance impact?

2016-10-14 Thread Goyal, Arpit
ach seems risky...I need to go async or remove the > looping out of the route overall. > > Regards, > Arpit. > > -Original Message- > From: souciance [mailto:souciance.eqdam.ras...@gmail.com] > Sent: Thursday, October 13, 2016 3:45 PM > To: users@camel.apache.org > Subj

Re: Looping in routes using Direct Component - Performance impact?

2016-10-14 Thread souciance
move the > > looping out of the route overall. > > > > Regards, > > Arpit. > > > > -Original Message- > > From: souciance [mailto:[hidden email] > <http:///user/SendEmail.jtp?type=node&node=5788811&i=1>] > > Sent: Thursday, Oc

Re: Looping in routes using Direct Component - Performance impact?

2016-10-14 Thread Brad Johnson
> looping out of the route overall. > > Regards, > Arpit. > > -Original Message- > From: souciance [mailto:souciance.eqdam.ras...@gmail.com] > Sent: Thursday, October 13, 2016 3:45 PM > To: users@camel.apache.org > Subject: Re: Looping in routes using Direct Component

RE: Looping in routes using Direct Component - Performance impact?

2016-10-13 Thread Goyal, Arpit
oping out of the route overall. Regards, Arpit. -Original Message- From: souciance [mailto:souciance.eqdam.ras...@gmail.com] Sent: Thursday, October 13, 2016 3:45 PM To: users@camel.apache.org Subject: Re: Looping in routes using Direct Component - Performance impact? I think you s

Re: Looping in routes using Direct Component - Performance impact?

2016-10-13 Thread souciance
1 again, forget all the past? Is > disabling HISTORY would solve that? > > Regards, > Arpit. > > > ------ > If you reply to this email, your message will be added to the discussion > below: > http://camel.465427.n5.nabble.com/Looping-in-routes-u

Looping in routes using Direct Component - Performance impact?

2016-10-13 Thread Goyal, Arpit
Hi, We currently are on 2.16.3 version and can't use the loop function (part of 2.17). So we have the following routes based on which we create sort of loop with switch case. Now we are worried about the performance (when we see stacktrace of camel processing) Route 1: from("direct:s1).to("re