Is it possible to use two ServletModules in combination with child
Injectors? And where should I create the "Root Injector"? I am
currently creating the Injectors in a ServletContextListener.

On 19 Mai, 17:11, Pavel Chlupacek <[email protected]> wrote:
> Child injectors probably? One injector for whole app and then create  
> child injector for each ear?
>
> On 19.5.2010, at 16:07, senny 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 
> 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.

Reply via email to