Sorry 

it is parenthesis 

from("jetty:http://localhost:8081/myapp/myservice?param1={param1}&param2={param2}";)
.to("restlet:http://localhost:20010/services/getInfos?param1=(param1)&param2=(param2)&restletMethod=get");

Greg AUTRIC                        
JBoss Middleware Consultant

email   : gautric __at__ redhat __dot__ com
twitter : @gautric_io

Red Hat Global Services            
Red Hat France SARL                sit: http://www.redhat.fr
Le Linea, 1 rue du General Leclerc, 92047 Paris La Défense Cedex
Sent from webmail

----- Mail original -----
De: "Greg Autric" <[email protected]>
À: [email protected]
Envoyé: Jeudi 13 Août 2015 15:06:36
Objet: Re: Getting query parameters from jetty and put then in restlet endpoint

Hi Arnaud,

Please take a look here 
https://github.com/apache/camel/blob/master/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletProducer.java#L147

this camel route should work correctly/directly :

from("jetty:http://localhost:8081/myapp/myservice?param1={param1}&param2={param2}";)
.to("restlet:http://localhost:20010/services/getInfos?param1={param1}&param2={param2}&restletMethod=get";);


Best regards,


Greg AUTRIC                        
JBoss Middleware Consultant

email   : gautric __at__ redhat __dot__ com
twitter : @gautric_io

Red Hat Global Services            
Red Hat France SARL                sit: http://www.redhat.fr
Le Linea, 1 rue du General Leclerc, 92047 Paris La Défense Cedex
Sent from webmail

----- Mail original -----
De: "arnaud" <[email protected]>
À: [email protected]
Envoyé: Mercredi 12 Août 2015 11:40:35
Objet: Getting query parameters from jetty and put then in restlet endpoint


Hello,

I try to get parameters from jetty endpoint to the restlet but it seems that
this is not the right way :

from("jetty:http://localhost:8081/myapp/myservice?param1={param1}&param2={param2}";)
.to("restlet:http://localhost:20010/services/getInfos?param1=${in.headers.param1}&param2=${in.headers.param2}&restletMethod=get";);

How can I pass my parameters?

Thanks,

Arnaud



--
View this message in context: 
http://camel.465427.n5.nabble.com/Getting-query-parameters-from-jetty-and-put-then-in-restlet-endpoint-tp5770602.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to