On 15-08-2012 17:03, igor.petrouk wrote:
This is not supported. Had to patch guice-servet module. Making servletes instantiate through Guice only in order to get injection does not make sence. Guice developers don't care -- You received this message because you are subscribed to the Google Groups "google-guice" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-guice/-/-idzhhq4980J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.

FWIW, personally, I have completely abandoned the idea of using guice-servlet due to a bunch of blocking bugs that haven't been fixed for years. Now I just run with a ServletContextListener that creates Guice Injector (same approach as guice-servlet), but I declare all my servlet and filters normally in web.xml. For servlet or filters that need injection, they just get the injector from the ServletContext (set by my ServletContextListener).

Then, for all other 3rd-party modules that rely on guice-servlet (guice-persist, shiro-guice), I have rewritten the servlet or filter in these libraries and reused everything else.

I won't -ever- go back to guice-servlet.

Jean-François

--
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to