[jboss-user] [JBoss Seam] - Re: Help injecting the SessionContext
bfo81
do-not-reply at jboss.com
Thu Aug 3 11:29:54 EDT 2006
There is something I forgot to tell you: WebSessionContext is NOT serializable. So if you have injected it into your SFSB, and the SFSB gets passivated (i.e. serialized) after some idle time, the sessionContext gets lost. And when reactivating the SFSB and accessing sessionContext you will get:
java.lang.RuntimeException: org.jboss.serial.exception.SerializationException: Could not create instance of org.jboss.seam.contexts.WebSessionContext
So use:
private transient sessionContext;
(Didn't have the time to test it yet)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962893#3962893
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962893
More information about the jboss-user
mailing list