[jboss-user] [JBoss Seam] - Re: DataModel, Factory and Stale Data
cja987
do-not-reply at jboss.com
Wed Mar 7 18:40:24 EST 2007
Of course you're getting stale data -- you're using SESSION scope and an extended persistence context that never changes during the bean's lifetime. Same PC, same isolated view of the database for the whole session.
Seam certainly doesn't discourage using Stateful Session Beans, it discourages using session *scope* for anything that isn't truly session-global.
I recommend using stateless beans for simple search and view pages, and conversation scoped (the default) when you want to manipulate the results without re-querying.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026027#4026027
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026027
More information about the jboss-user
mailing list