You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by indrayani <in...@gmail.com> on 2013/06/21 14:12:01 UTC
Regarding came route id
Hi,
i have a route defined as follows :
<route id="route123">
<from uri="servlet:///servletA"/>
<to uri="activemq:queue:inbox"/>
</route>
currently i am calling a servlet as using following url :
http://localhost:8082/camel-example-activemq-tomcat/camel/servletA
my query is, is it possible to use the route id in the servlet url ?
that is insted of using ' /camel-example-activemq-tomcat/camel/servletA ' ,
can i use route id something like this '
/camel-example-activemq-tomcat/camel/route123 '
--
View this message in context: http://camel.465427.n5.nabble.com/Regarding-came-route-id-tp5734531.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Regarding came route id
Posted by indrayani <in...@gmail.com>.
thank you for the explanation, even i was thinking on the same lines, like i
can use the routeid
--
View this message in context: http://camel.465427.n5.nabble.com/using-came-route-id-in-servlet-call-tp5734531p5734657.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Regarding came route id
Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Jun 21, 2013 at 2:12 PM, indrayani <in...@gmail.com> wrote:
> Hi,
> i have a route defined as follows :
>
> <route id="route123">
> <from uri="servlet:///servletA"/>
> <to uri="activemq:queue:inbox"/>
> </route>
>
> currently i am calling a servlet as using following url :
>
> http://localhost:8082/camel-example-activemq-tomcat/camel/servletA
>
> my query is, is it possible to use the route id in the servlet url ?
>
> that is insted of using ' /camel-example-activemq-tomcat/camel/servletA ' ,
> can i use route id something like this '
> /camel-example-activemq-tomcat/camel/route123 '
>
No its a servlet, so you define the mapping in the web.xml file.
And as well in the uri. So in the camel uri, you can define it as
"servlet://route123"
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Regarding-came-route-id-tp5734531.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: Regarding came route id
Posted by Christian Müller <ch...@gmail.com>.
No.
Sent from a mobile device
Am 21.06.2013 14:52 schrieb "indrayani" <in...@gmail.com>:
> Hi,
> i have a route defined as follows :
>
> <route id="route123">
> <from uri="servlet:///servletA"/>
> <to uri="activemq:queue:inbox"/>
> </route>
>
> currently i am calling a servlet as using following url :
>
> http://localhost:8082/camel-example-activemq-tomcat/camel/servletA
>
> my query is, is it possible to use the route id in the servlet url ?
>
> that is insted of using ' /camel-example-activemq-tomcat/camel/servletA ' ,
> can i use route id something like this '
> /camel-example-activemq-tomcat/camel/route123 '
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Regarding-came-route-id-tp5734531.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>