Inject « Tomcat « JSP-Servlet Q&A





1. Injecting an object into a HttpSessionAttributeListener via Guice?    stackoverflow.com

Configuration: Guice 1.0, Apache Tomcat 6.0 I am currently manually injecting objects configured in a Guice Module, into my servlet, using this method:

public void init( ServletConfig config ) throws ServletException
{
   ...

2. Injected ServetContext is null on Grizzly, not null in TomCat 7    stackoverflow.com

I'm working on a Jax-RS RESTful web-service. While I'm still coding (in Eclipse), I'd like to be able to debug easily, so I decided to have a Maven project and I ...