-
1. Re: Seam contexts and stateful session instances
christian.douven Jan 6, 2008 1:46 PM (in response to ruettimac)Does it also happen if your ScopeType is "conversation"?
-
2. Re: Seam contexts and stateful session instances
pmuir Jan 6, 2008 4:38 PM (in response to ruettimac)The event context only spans a request, you need a long running conversation. Take a look at the reference manual for a full explanation of the Seam scopes.
-
3. Re: Seam contexts and stateful session instances
ruettimac Jan 7, 2008 3:17 PM (in response to ruettimac)Hi,
Yes, I changed the Scope to CONVERSATION, but omit the @Begin and @END tags. The page get's loaded (calling the Create method) and then submit the page again (persist). Then the conversation is ended.
Are there any recommendations about how to use the Scope. I am asking because stick the bean to the session context compared to the conversation should result in less resources (Memory). Or is there some more overhead to take into account?
Thanks,
Cyrill -
4. Re: Seam contexts and stateful session instances
pmuir Jan 9, 2008 7:01 PM (in response to ruettimac)If you use a temporary conversation (no @Begin/@End) then you will get a new bean created for each request (like event). A conversation scope should use less memory than a session scoped bean as a conversation is normally shorter than a session.