users@jersey.java.net

[Jersey] Annotation Inheritance

From: animesh sonkar <animesh_smit_at_yahoo.com>
Date: Fri, 30 Oct 2009 21:02:34 +0530 (IST)

Thanks i got the problem. Shifted @Path to TestIMPL and things were smooth But my whole intention was to provide an interface with @Path("/test") So an implementaion provider just needs to implement the interface method and the contract to the URL is taken care. i tried public interface TestInterface { @Path("/test") @GET @Produces("text/plain") public String sayHello(); } @Path("/dummy") public class TestIMPL implements TestInterface { public String sayHello() { // TODO Auto-generated method stub return "Hello World"; } } this time i did not get any exception but neither "/dummy" nor "/test" worked and no errors were genereted. Any idea how to go about? Connect more, do more and share more with Yahoo! India Mail. Learn more. http://in.overview.mail.yahoo.com/