Re: Routing question
thanks for your answer. in this case i am lose the orig request? -- View this message in context: http://camel.465427.n5.nabble.com/Routing-question-tp5782945p5783285.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Routing question
I would take a look at http://camel.apache.org/content-enricher.html If you don't want to use a AggregrationStrategy you could do the following in a route: 1. call the first endpoint; 2. move the payload to a header (setHeader); 3. call second endpoint; 4. move the payload to another header; 5. call third endpoint; 6. use some kind of scripting or whatever to create a new payload en call methods on it using the headers from step 2 and 4. Another solution might be to use http://camel.apache.org/multicast.html. I think that using the GroupedExchangeAggregationStrategy you get a List in the payload containing all the responses. -- View this message in context: http://camel.465427.n5.nabble.com/Routing-question-tp5782945p5783075.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Routing question
i didn't try it. where can i store the responses values? i need call to different APIs to get metadata before i call to target request ? thanks -- View this message in context: http://camel.465427.n5.nabble.com/Routing-question-tp5782945p5783058.html Sent from the Camel - Users mailing list archive at Nabble.com.
Routing question
hi , i need to implements routing with logic. i will get the request , processing the request should read from different APIs (external API) to make a new request for the endpoint. for example : process (){ S1 = consume API1 s2 = consume API2 s3= consume API3 newRequest.setS1(s1) newRequest.setS2(s2) newRequest.setS3(s3) exchange.getIn().setBody(newRequest) } what is the best way to implements? -- View this message in context: http://camel.465427.n5.nabble.com/Routing-question-tp5782945.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Routing question
Have you tried it yourself first? Where have you failed? On Mon, May 23, 2016 at 12:49 PM, miri eyni [via Camel] < ml-node+s465427n5782945...@n5.nabble.com> wrote: > hi , > > > i need to implements routing with logic. > i will get the request , processing the request should read from > different APIs (external API) to make a new request for the endpoint. > > for example : > > process (){ > S1 = consume API1 > s2 = consume API2 > s3= consume API3 > > newRequest.setS1(s1) > newRequest.setS2(s2) > newRequest.setS3(s3) > > exchange.getIn().setBody(newRequest) > } > what is the best way to implements? > > -- > If you reply to this email, your message will be added to the discussion > below: > http://camel.465427.n5.nabble.com/Routing-question-tp5782945.html > To start a new topic under Camel - Users, email > ml-node+s465427n465428...@n5.nabble.com > To unsubscribe from Camel - Users, click here > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code=465428=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=> > . > NAML > <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer=instant_html%21nabble%3Aemail.naml=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://camel.465427.n5.nabble.com/Routing-question-tp5782945p5782949.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: n00b routing question
Hi Can you tell a bit more about which Camel version. And what CLI do you use? And what command or what you do type. On Mon, Jun 22, 2015 at 8:30 PM, Pratt, Jason jason.pr...@windriver.com wrote: Hello everyone - I am trying to get my routes to show up when I list them in the CLI. I can get the context to display 'myId', but not route1 or route2. What am I doing wrong? camelContext xmlns=http://camel.apache.org/schema/blueprint; id=myId routeBuilder ref=myFirstRoute name=route1 / routeBuilder ref=mySecondRoute name=route2 / /camelContext Regards, Jason -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
Re: n00b routing question
Ah use .routeId to set the route nane in Java code. You cannot use name attribute in xml Den mandag den 22. juni 2015 skrev Pratt, Jason jason.pr...@windriver.com: Hi claus - sorry mate. I am using 2.15.2 running in a karaf 3.0.3 container When I list the routes via camel:route-list I get a generic route number for both 1 and 2. Currently they are 33 and 34 respectively. Jason -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com javascript:;] Sent: Monday, June 22, 2015 12:26 PM To: users@camel.apache.org javascript:; Subject: Re: n00b routing question Hi Can you tell a bit more about which Camel version. And what CLI do you use? And what command or what you do type. On Mon, Jun 22, 2015 at 8:30 PM, Pratt, Jason jason.pr...@windriver.com javascript:; wrote: Hello everyone - I am trying to get my routes to show up when I list them in the CLI. I can get the context to display 'myId', but not route1 or route2. What am I doing wrong? camelContext xmlns=http://camel.apache.org/schema/blueprint; id=myId routeBuilder ref=myFirstRoute name=route1 / routeBuilder ref=mySecondRoute name=route2 / /camelContext Regards, Jason -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com javascript:; Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/ -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
n00b routing question
Hello everyone - I am trying to get my routes to show up when I list them in the CLI. I can get the context to display 'myId', but not route1 or route2. What am I doing wrong? camelContext xmlns=http://camel.apache.org/schema/blueprint; id=myId routeBuilder ref=myFirstRoute name=route1 / routeBuilder ref=mySecondRoute name=route2 / /camelContext Regards, Jason