java - Setting up an Adapter with Camel -


i'm trying find correct way set camel route, , need decide part model camel-producer.

following setting:

on frontend (website) user sets parameters, , triggers data-transformation.

these parameters used build query rest-client (clienta). client receives data needs transformed.

after transformation have second client (clientb) posting transformed data second rest-service.

for this, set following route:

from("direct:start").to(clienta).process(datatransformations).to(clientb) 

using producertemplate put in parameters given user, needed clienta, camel-http4-component.

what gives me headache 2 "to"s in route, since seldom see in examples. correct way set route, or misunderstanding concept of camel-producer?

thanks!

i don't think need use producertemplate time. camel route can be

from("direct:start").to("http4://service1?xxx").process(datatransformations).to("http4://service2"); 

you can set message headers change query parameters.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -