I am trying to use the sub resource functionality as follows:

@Path("/users/")
public class UserService {

  @Path("/users/{id}/")
  public User getUser(@PathParam("id") String id) {
    ... // load from db
  }
  
  ...

}

public class User {
  
  @Path("orders/{orderId}")
  public Order getOrder(@PathParam("orderId") orderId) {
    ...
  }

  ..
}

When I try to access http://localhost:9080/users/123/orders/456 , I get a
"No operation matching request path" fault. 

Any suggestions?
-- 
View this message in context: 
http://www.nabble.com/Question-about-JAX-RS-Sub-resources-tp16927448p16927448.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to