Comment by [email protected]:
I have a @SessionScoped DAO that's being injected into a Stripes framework
Interceptor constructor that seems to be found from the interceptor (on
subsequent calls) but is not being injected into a service in the same
request (and session). Why isn't the same instance (initialized in the
interceptor) being reused in the service (which is in a different package
in the same project)?
Making the DAO a @Singleton does the trick, but is unacceptable as the DAO
stores information that must remain consistent throughout a user's session
on an application that has multiple users who would be sharing the same DAO
instance.
For more information:
http://code.google.com/p/google-guice/wiki/Scopes
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" 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-dev?hl=en.