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.