[jboss-user] [JBoss Seam] - Re: Help injecting the SessionContext

2006-08-03 Thread bfo81
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:

[jboss-user] [JBoss Seam] - Re: Help injecting the SessionContext

2006-08-03 Thread [EMAIL PROTECTED]
Right, this should be mentioned in the Seam docs. Perhaps we should even make Seam warn about it... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3962917#3962917 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3962917

[jboss-user] [JBoss Seam] - Re: Help injecting the SessionContext

2006-08-02 Thread bfo81
First: You don't need to write value=sessionContext since the name of the annotated variable is the same, namely sessionContext. You only need to explicitely set the value when the variable's name ist different from the seam component name. Ok, now to your problem: The last Exception says that

[jboss-user] [JBoss Seam] - Re: Help injecting the SessionContext

2006-08-02 Thread bfo81
Stop, forget what I said. I just had a look at UnsafeObjectFieldAccessorImpl.java and its set-method: public void set(Object obj, Object value) | throws IllegalArgumentException, IllegalAccessException | { | ensureObj(obj); | if (isFinal) { |

[jboss-user] [JBoss Seam] - Re: Help injecting the SessionContext

2006-08-02 Thread c_eric_ray
Righto. Because SessionContext is probably package access only and I must use the Context Interface. I'll give it a shot. Thanks for the help. Eric View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3962502#3962502 Reply to the post :