Set "async-supported" with guice-servlet?

753 views
Skip to first unread message

ale

unread,
Mar 13, 2011, 11:16:30 PM3/13/11
to google-guice
Hello.

How i can set "async-supported" property with guice-servlet ?

In web.xml i do this:

<servlet>
<async-supported>true</async-supported>
..
</servlet>

Thanks.

Pavel Savinov

unread,
Aug 30, 2011, 5:18:02 AM8/30/11
to google...@googlegroups.com
Hello!

I have the same problem. Do you resolve this?

ale

unread,
Dec 5, 2011, 11:10:40 AM12/5/11
to google...@googlegroups.com
Not yet. And you ?

igor.petrouk

unread,
Aug 15, 2012, 11:03:46 AM8/15/12
to google...@googlegroups.com
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

Jean-Francois Poilpret

unread,
Aug 15, 2012, 5:12:31 PM8/15/12
to google...@googlegroups.com
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 google...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-guice...@googlegroups.com.
> 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
Reply all
Reply to author
Forward
0 new messages