title: JAX-RS Same @Path Identifier in two Services
body: <p>I am having the below scenario while implementing JAX-RS web service.</p>
  
  <p>Service A:</p>
  
  <pre><code>@Path("/customer/{customerId}")
  public interface ICustomerDataUsageService{
  
  @GET
  @Path("/datausage")
  public Response getCustomerDataUsage();
  
  //other methods...
  }
  </code></pre>
  
  <p>Service B:</p>
  
  <pre><code>@Path("/")
  public interface IHelpDeskService{
  
  @GET
  @Path("/customer/{customerId}")
  public Response getCustomer();
  
  //other methods...
  }
  </code></pre>
  
  <p>After deployment only the Service A is working (Its registered after the Service B). For the second one I am getting HTTP 404 error.</p>
  
  <p>Unfortunately we cannot change the interfaces since its provided by another entity. We are only having control of the implementation classes for these. </p>
  
  <p>I am using <a href="https://jersey.github.io/" rel="nofollow noreferrer">Jersey-2.22</a>.</p>
  
  <p>Is there any way out to have both these services working without changing the interfaces.</p>
  
  <p>Thanks in Advance!</p>