Oh, ya. Seam uses a thread local to get it's "Context" and then uses the
various scopes in that context to determine the actual values in the scopes. If you wanna
get into much more detail on how Seam manages it's scopes it would probably be best to
look at the code. I think the key here is that this integration lets Seam do it's
thing and Spring do it's thing and the actual connection between the 2 is quite loose.
So if you wanna use a Seam managed persistence context you just need to make sure Seam is
set up correctly for the Context of that call into the spring singleton and it will just
work.
The spring seam integration also contains code to attempt to automatically set up a Seam
Context and scopes it in a spring transaction in the case of a non web request originated
call into spring.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116496#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...