Tak very much SHTherkildsen.
Bellow is my example of the code I have deployed on ServiceWork.
That mean I can not create JAX-RS webservice like bellow ?
@ApplicationPath("tests")
public class ApplicationActivator extends Application {
}
@Path("/test")
public class Resource {
@GET
@Path("/getTest")
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public Response getResource(@Context Request req) {
}
--------------------------------------------------------------------------------------------------------------------------------------
I have to follow the procedure you have ?
That mean an interface ?
then a Routebuilder ?
@Path("/")
public interface IsAliveServiceEndpoint {
@GET
@Path("isAlive")
@Produces("text/json")
Response isAlive();
}
---
A routebuilder:
---
public class IsAliveServiceRouteBuilder extends RouteBuilder {
@Override
public void configure() throws Exception {
from("cxfrs:bean:isAliveService?bindingStyle=SimpleConsumer")
.to(...do stuff...);
}
}
---
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-create-a-camel-spring-webservice-tp5777688p5777767.html
Sent from the Camel - Users mailing list archive at Nabble.com.