users@jersey.java.net

Common resource path issue

From: Dmitry Shaparev <dmitry.shaparev_at_gmail.com>
Date: Tue, 27 Oct 2009 10:38:35 +0600

Jersey 1.0.1 has the following issue:

@Path("/resource")
public class OldResource {

    @POST
    @Path("/a")
    public void echo(String s) {
        ...
    }
}

@Path("/resource")
public class NewResource {

    @POST
    @Path("/b")
    public void echo(String s) {
        ...
    }
}

Common resource path makes available only one of them, therefore there
is no availability to use both resources. Could please you clarify has
a new Jersey release fix for this issue?

Could you provide a way to implement overriding of default action in
Jersey 1.0.1 to make available both resources with common path?