I'm playing around with JAX-RS, deploying on Tomcat. It's basically:
@Path("/hello")
@Produces({"text/plain"})
public class Hellohandler {
@GET
public String hello() {
return "Hello World";
}
}
Is there any way I can get hold of the ServletContext
within my JAX-RS resource?