I am writing restful webservices using camel cxfrs components. I want to
expose > 10 services and my service interface looks like this:
@Path("/employees")
public interface EmployeeService {
@Post
@path("/account")
someMethod1();
@Get
@Path("/books")
someMethod2();
...
...
For each endPoint, i don't want to create one cxf:rsServer server (because
it won't be scalable solution). I want to expose all the services with one
cxf:rsServer. So, here is what i did:
<cxf:rsServer id="rsServer" address="http://localhost:8080/employee-service/
serviceClass="com.abc. EmployeeServiceImpl" loggingFeatureEnabled="true"
loggingSizeLimit="20">
</cxf:rsServer>
Route for each service is different. i.e. from().to().to().end() for each
of these services is different. How can i make sure that when i invoke
http://localhost:8080/employee-service/employees/account, route for
someMethod1() should get called?
expose > 10 services and my service interface looks like this:
@Path("/employees")
public interface EmployeeService {
@Post
@path("/account")
someMethod1();
@Get
@Path("/books")
someMethod2();
...
...
For each endPoint, i don't want to create one cxf:rsServer server (because
it won't be scalable solution). I want to expose all the services with one
cxf:rsServer. So, here is what i did:
<cxf:rsServer id="rsServer" address="http://localhost:8080/employee-service/
serviceClass="com.abc. EmployeeServiceImpl" loggingFeatureEnabled="true"
loggingSizeLimit="20">
</cxf:rsServer>
Route for each service is different. i.e. from().to().to().end() for each
of these services is different. How can i make sure that when i invoke
http://localhost:8080/employee-service/employees/account, route for
someMethod1() should get called?