camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Invoking Servlet from Camel
Date Mon, 29 Jul 2013 10:43:46 GMT
Hi

See this page
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html

On Mon, Jul 29, 2013 at 12:38 PM, SyedBhai <syedahmed.csse@hotmail.com> wrote:
> Hi guys,
>   I am having a servlet.  It expects one parameter, say 'message'.
>   I want to invoke it using camel.
>   I am able to invoke it successfully as a HTTP GET method as follows:
>
> from("direct:start").to("http://192.168.221.109:8080/DSP1/ServletDsp?message=HelloCamel");
>     String response=template.requestBody("direct:start", null,
> String.class);
>
>   What I want is instead of passing the parameter in the query string, can I
> pass it as a message body?
>     String response=template.requestBody("direct:start", "HelloCamel",
> String.class);
>
>   Is there a way to accomplish this?
>
>   I have already visited Camel Servlet Component webpage.
>
>   It doesn't help.
>
> Thanks,
> Syed.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Invoking-Servlet-from-Camel-tp5736417.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message