You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gilboy <jo...@gmail.com> on 2016/02/08 10:37:19 UTC
Exposing rest service from camel application using existing http
transport
Hi
I am looking at using the Rest component to define a Rest endpoint. My camel
application gets packaged as a WAR file which I deploy in to my standalone
tomcat instance.
I am not sure if I can bind this Rest endpoint to HTTP requests that arrive
at the HTTP endpoint on my tomcat instance.
In the documentation it looks like I need to use another camel component
like camel-jetty or camel-servlet to manage the REST transport. However, I
don't want to do this as I already have a http endpoint available in my
tomcat instance
Thanks
Joe
--
View this message in context: http://camel.465427.n5.nabble.com/Exposing-rest-service-from-camel-application-using-existing-http-transport-tp5777361.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Exposing rest service from camel application using existing http transport
Posted by Claus Ibsen <cl...@gmail.com>.
You can use the servlet component with the rest-dsl.
There is already a tomcat example.
https://github.com/apache/camel/tree/master/examples/camel-example-swagger-java
On Mon, Feb 8, 2016 at 10:37 AM, gilboy <jo...@gmail.com> wrote:
> Hi
>
> I am looking at using the Rest component to define a Rest endpoint. My camel
> application gets packaged as a WAR file which I deploy in to my standalone
> tomcat instance.
>
> I am not sure if I can bind this Rest endpoint to HTTP requests that arrive
> at the HTTP endpoint on my tomcat instance.
>
> In the documentation it looks like I need to use another camel component
> like camel-jetty or camel-servlet to manage the REST transport. However, I
> don't want to do this as I already have a http endpoint available in my
> tomcat instance
>
> Thanks
> Joe
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Exposing-rest-service-from-camel-application-using-existing-http-transport-tp5777361.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2