You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by cgsk <ka...@gmail.com> on 2014/01/28 15:36:34 UTC
Configuring CXF Rest endpoint
Hi There,
Iam trying to expose a Restful service using camel jetty & cxfrs ben
components as below:
My Service class:
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("/{somePathparam}")
public CustomResponse getRestService(@PathParam("somePathparam")
String somePathparam)
And my Route:
from("jetty:http://localhost:8001/restapi/?matchOnUriPrefix=true")
.to("cxfbean:CXFServiceImpl")
.log("Received request with path params :${header.somePathparam}");
When I hit the url in Rest client I am seeing the service route getting
invoked. But is there a way to get the exchange reference in my service
class?
Regards,
CGSK
--
View this message in context: http://camel.465427.n5.nabble.com/Configuring-CXF-Rest-endpoint-tp5746550.html
Sent from the Camel - Users mailing list archive at Nabble.com.