Re: Creating routes dynamically like a for()

2013-10-09 Thread gudiseashok
> > > > > > >If you reply to this email, your message will be added to the discussion below: > > > http://camel.465427.n5.nabble.com/Creating-routes-dynamically-like-a-for-tp5740703p5

Re: Creating routes dynamically like a for()

2013-10-09 Thread mamouros
ically. Now I only have to figure out a way to stop those routes and threads.. -- View this message in context: http://camel.465427.n5.nabble.com/Creating-routes-dynamically-like-a-for-tp5740703p5741217.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Creating routes dynamically like a for()

2013-10-04 Thread gudiseashok
RoutesToCamelContext(camelContext); }catch(Exception e){ e.printStackTrace(); } } --- Hope this works for you, or my apologies if I mis-guided you because I am also a co-learner :-) -- View this message in context: http://camel.465427.n5.nabble.com/Creat

Re: Creating routes dynamically like a for()

2013-10-03 Thread kraythe .
from the database and I would > also like to check for any new accounts in the database every now and then > so I can create another route receiving to that account. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Creating-routes-dynamically-lik

Re: Creating routes dynamically like a for()

2013-10-02 Thread mamouros
n the database every now and then so I can create another route receiving to that account. -- View this message in context: http://camel.465427.n5.nabble.com/Creating-routes-dynamically-like-a-for-tp5740703p5740764.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Creating routes dynamically like a for()

2013-10-02 Thread Dale King
ry database -> > returns 3 accounts > create 3 routes -> >from( account 1 ) >from( account 2 ) >from( account 3 ) > go again from start > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Creating-routes-dynamically-like-a-for-tp5740703p5740746.html > Sent from the Camel - Users mailing list archive at Nabble.com.

Re: AW: Creating routes dynamically like a for()

2013-10-02 Thread mamouros
runtime: query database -> returns 3 accounts create 3 routes -> from( account 1 ) from( account 2 ) from( account 3 ) go again from start -- View this message in context: http://camel.465427.n5.nabble.com/Creating-routes-dynamically-like-a-for-tp5740703p5740746.html Sen

AW: Creating routes dynamically like a for()

2013-10-01 Thread jhm
) Or am I wrong here? Jan > -Ursprüngliche Nachricht- > Von: kraythe . [mailto:kray...@gmail.com] > Gesendet: Mittwoch, 2. Oktober 2013 07:42 > An: Camel Users List > Betreff: Re: Creating routes dynamically like a for() > > Just put the for outside. I do this a

Re: Creating routes dynamically like a for()

2013-10-01 Thread kraythe .
prüngliche Nachricht- > > Von: mamouros [mailto:csst0...@yahoo.gr] > > Gesendet: Dienstag, 1. Oktober 2013 17:58 > > An: users@camel.apache.org > > Betreff: Creating routes dynamically like a for() > > > > I would like to create a route for every query my sql route re

AW: Creating routes dynamically like a for()

2013-10-01 Thread jhm
sor ) Jan > -Ursprüngliche Nachricht- > Von: mamouros [mailto:csst0...@yahoo.gr] > Gesendet: Dienstag, 1. Oktober 2013 17:58 > An: users@camel.apache.org > Betreff: Creating routes dynamically like a for() > > I would like to create a route for every query my sql route retur

Re: Creating routes dynamically like a for()

2013-10-01 Thread Dale King
uot;); > > } > > so if I have 3 entries in my table, I would create 3 routes. > > How is that possible. Is there any EIP that does that? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Creating-routes-dynamically-like-a-for-tp5740703.html > Sent from the Camel - Users mailing list archive at Nabble.com.

Creating routes dynamically like a for()

2013-10-01 Thread mamouros
:" + fromUri + "?dataSource=dataSource") ) { .to("bean:SmsReceiver?method=creatingRoutes"); } so if I have 3 entries in my table, I would create 3 routes. How is that possible. Is there any EIP that does that? -- View this message in context: http://camel.465427.n5.n

Re: creating routes dynamically

2012-07-07 Thread Christian Müller
Fri, Jul 6, 2012 at 11:06 AM, Sri wrote: > Hi , > > I have used in following way which works creating routes dynamically. > > > ProducerTemplate template=exchange.getContext().createProducerTemplate(); > > Message msg=exchange.getOut(); > S

Re: creating routes dynamically

2012-07-06 Thread Henryk Konsek
> How ever I wanted to read the messages from these routes > and But no clue how to inform this routes the which is going to be consumed? I don't get this sentence, could you elaborate it a little bit? -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: creating routes dynamically

2012-07-06 Thread Sri
Hi , I have used in following way which works creating routes dynamically. ProducerTemplate template=exchange.getContext().createProducerTemplate(); Message msg=exchange.getOut(); System.err.println("Out msg headers " + msg.getHeaders()); for(int

Re: creating routes dynamically

2012-07-06 Thread Henryk Konsek
> You could use a Dynamic Router: Yeah, I suggest to evaluate Dynamic Router and Recipient List for your case. In many cases when somebody wants to create routes dynamically at runtime, she actually needs these two patterns :) . -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: creating routes dynamically

2012-07-05 Thread James Carman
over the period of time. And is it feasble > to have this kind of architecture?. > > > > Regards > Sri > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/creating-routes-dynamically-tp5715557.html > Sent from the Camel - Users mailing list archive at Nabble.com.

Re: creating routes dynamically

2012-07-05 Thread Christian Müller
Yeah, reconsider your design. and instead of CamelContext context = new DefaultCamelContext(); the preferred way is CamelContext context = exchange.getContext(); if you use a processor to build your routes dynamically. Best, Christian On Thu, Jul 5, 2012 at 6:31 PM, Henryk Konsek wrote: > H

Re: creating routes dynamically

2012-07-05 Thread Henryk Konsek
Hi Sri, > I wanted to create routes dynamically based on the msg header I receive and > send msg to that route . Yes, you can. CamelContext context = new DefaultCamelContext(); context.addRoutes(new RouteBuilder() { @Override public void configure() throws Exception { from("direct:start1

creating routes dynamically

2012-07-05 Thread Sri
.nabble.com/creating-routes-dynamically-tp5715557.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Creating routes dynamically

2011-10-30 Thread Donald Whytock
;>>                        .to("file:C:\\FtpTestFolders\\FtpError"); >>>                         //Here I may or may not want to add other headers, >>> endpoints and processors >>> >>>                             } >>>              

Re: Creating routes dynamically

2011-10-30 Thread Claus Ibsen
r may not want to add other headers, >> endpoints and processors >> >>                             } >>                     }); >> >> This is fine but what if I have defined my headers and endpoint in >> somewhere >> else (db/file/etc) and I wan&

Re: Creating routes dynamically

2011-10-29 Thread Johm Mac
te it. Thank you -- View this message in context: http://camel.465427.n5.nabble.com/Creating-routes-dynamically-tp4948062p4948062.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Creating routes dynamically

2011-10-29 Thread tkatva
Also being able to add processors to each target endpoint would be necessary... -- View this message in context: http://camel.465427.n5.nabble.com/Creating-routes-dynamically-tp4948062p4948350.html Sent from the Camel - Users mailing list archive at Nabble.com.

Creating routes dynamically

2011-10-29 Thread tkatva
reate routes based on these dynamically. The API is quite complex so if someone could post me an example I would really appreciate it. Thank you -- View this message in context: http://camel.465427.n5.nabble.com/Creating-routes-dynamically-tp4948062p4948062.html Sent from the Camel - Users mailing list archive at Nabble.com.