You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by npa <np...@gmail.com> on 2014/03/23 22:18:33 UTC

Sending a string response from a route...

Is it possible to send a response out from a route flow. For Example, in this
below route, I would always like to send out a string response say, "hi"
whenever the request comes from the uri mentioned..

<route>
  <from uri="jetty:http://0.0.0.0:8888/camelServlet/abc?" />

</route>

if possible, how do I do it?



--
View this message in context: http://camel.465427.n5.nabble.com/Sending-a-string-response-from-a-route-tp5749258.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Sending a string response from a route...

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yeah see also this example
http://camel.apache.org/servlet-tomcat-example.html

On Mon, Mar 24, 2014 at 6:27 AM,  <Ra...@cognizant.com> wrote:
> This is possible.
>
>                 <route>
>                          <from uri="jetty:http://localhost:9999/camelServlet/abc?" />
>                         <transform>
>                                 <constant>Hi</constant>
>                         </transform>
>                 </route>
>
> -Ravi
>
> ________________________________________
> From: npa [npa.ccdb@gmail.com]
> Sent: Monday, March 24, 2014 2:48 AM
> To: users@camel.apache.org
> Subject: Sending a string response from a route...
>
> Is it possible to send a response out from a route flow. For Example, in this
> below route, I would always like to send out a string response say, "hi"
> whenever the request comes from the uri mentioned..
>
> <route>
>   <from uri="jetty:http://0.0.0.0:8888/camelServlet/abc?" />
>
> </route>
>
> if possible, how do I do it?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Sending-a-string-response-from-a-route-tp5749258.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful.



-- 
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
Make your Camel applications look hawt, try: http://hawt.io

RE: Sending a string response from a route...

Posted by Ra...@cognizant.com.
This is possible.

                <route>
                         <from uri="jetty:http://localhost:9999/camelServlet/abc?" />
                        <transform>
                                <constant>Hi</constant>
                        </transform>
                </route>

-Ravi

________________________________________
From: npa [npa.ccdb@gmail.com]
Sent: Monday, March 24, 2014 2:48 AM
To: users@camel.apache.org
Subject: Sending a string response from a route...

Is it possible to send a response out from a route flow. For Example, in this
below route, I would always like to send out a string response say, "hi"
whenever the request comes from the uri mentioned..

<route>
  <from uri="jetty:http://0.0.0.0:8888/camelServlet/abc?" />

</route>

if possible, how do I do it?



--
View this message in context: http://camel.465427.n5.nabble.com/Sending-a-string-response-from-a-route-tp5749258.html
Sent from the Camel - Users mailing list archive at Nabble.com.
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful.