Greetings, i'm experiencing a real strange issue with google guice 3.0 and 
servlet filters on jboss as7

i've two different ears. Each ear has a war inside. Each war as a different 
servlet module to configure google guice.

Each servlet module configure a servlet filter with 
filter(url).through(MyFilter.class)

MyFilter.class is marked as @Singleton, and is contained in a jar, which is 
deployed inside the lib directory of each ear.

Each war gets its own instance of servlet context (of course) and its own 
instance of the injector, but unfortunately the filter instance is is 
shared between the ears.

i solved the issue moving the filter definition inside the web.xml for each 
web application, but i'm puzzled why google guice does not create a new 
filter instance  for each web application. it seems google guice takes 
@Singleton as JVM wide.

thank you.

c.




-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to