Reputation: 5867
In my project, we are not using Spring. Is it possible to use Apache Camel and Apache CXF to build REST service?
I used
<listener>
<listener-class>
org.apache.camel.component.servletlistener.SimpleCamelServletContextListener
</listener-class>
</listener>
<servlet-class>
org.apache.camel.component.servlet.CamelHttpTransportServlet
</servlet-class>
I create a Route class, and I am able to utilize that route. But, this doesn't look like REST service, but looks like plain Servlet call.
How to use CXF here to build REST service.
Upvotes: 2
Views: 2332
Reputation: 1398
I have an example at:
http://code.notsoclever.cc/camel-cxfrs-jdbc-rest-example/
The example does use Spring but note that the CXFRS component is not configured in Spring.
Upvotes: 0
Reputation: 6915
Another option you could consider apart from the one Willem suggested is using Restlet. Apache Camel provides a nice integration with the framework and super-easy usage.
You can find more info about Restlet and its Apache Camel integration here
Upvotes: 0
Reputation: 3291
It's hard to config the CXF REST endpoint without using Spring. I think you can use simple binding to build the route.
Upvotes: 2