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/