On Friday, May 21, 2010, Willi Schönborn <[email protected]> wrote: > On 21/05/10 01:44, bklough wrote: > > http://www.objectsource.com/j2eechapters/Ch21-ClassLoaders_and_J2EE.htm > > This might help as a start along the path of ClassLoader > enlightenment, which someone will need in order to keep the Singleton > beast from snarfing heads. Singletons across WARs within an EAR are > bad, from every perspective, but good luck. > > > I have another use cases for multiple servlet modules with independent > guice filters: > I am about to embed jetty (or grizzly) with multiple contexts. Want i > want is to share instances of my framework but no servlets/filters > between the contexts. But this seems to be impossible as long as the guice > filter uses static state.
This is now possible if you use guice to create the guicefilters (with the caveat that your app doesn't rely on servlet context via the injector). Dhanji. > > On May 19, 7:07 am, senny<[email protected]> wrote: > > > Hey > > We have an EAR project, which contains multiple war projects. Our > current Guice setup is one Injector per war so that we can use a > ServletModule for both of them. The problem we are facing now, is that > we need to share singleton instances between the war files. Since we > have different injectors, we don't have the same singleton scope. Is > there a solution to that problem? Or how would you work around it? > > Cheers, > -- Yves > > -- > 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 > athttp://groups.google.com/group/google-guice?hl=en. > > > > > > -- > 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. > > -- 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.
