[jboss-user] [JBoss Seam] - Problem with passivation/activation
mbolcina
do-not-reply at jboss.com
Thu May 31 03:27:36 EDT 2007
I have SFSB on SESSION scope. SFSB looks like this:
| @Stateful
| @Scope(ScopeType.SESSION)
| @Name("dnListBean")
| public class DnListBean extends ListManagerSimple<Dn> implements DnListLocal
| {
| private Long resultCount;
| private List<Dn> resoultList;
|
| @PrePassivate
| public void prePasivate()
| {
| System.out.println("DnListBean.prePasivate()");
| System.out.println("resultCount="+resultCount);
| }
|
| @PostActivate
| public void postActive()
| {
| System.out.println("DnListBean.postActive()");
| System.out.println("resultCount="+resultCount);
| }
|
| ...
| }
|
Problem is that when SFSB gets passivate (after some time if user does nothing on page) and then back activate (after user for eg. refresh page which uses this sesssion bean) all data is lost.
Here is log from console:
| 09:14:02,021 INFO [STDOUT] DnListBean.prePasivate()
| 09:14:02,022 INFO [STDOUT] resultCount=64
| 09:14:33,674 INFO [STDOUT] DnListBean.postActive()
| 09:14:33,674 INFO [STDOUT] resultCount=null
|
Am I missing something?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049992#4049992
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049992
More information about the jboss-user
mailing list