-
1. Re: stateful SessionBeans and the HTTP session
sebaseba May 9, 2002 5:29 AM (in response to rkilgore)The SessionBean cannot really stay available after redeployment - JBoss would have to maintain two versions of the EJB in parallel to achieve something like that. The typical error message I get when trying to reuse a stale bean instance from a servlet is "Method not found".
Not sure about your HTTP session issue - are you sure JBoss persists the session information to disk to survive shutdown/startup?
/Sebastian -
2. Re: stateful SessionBeans and the HTTP session
rkilgore May 10, 2002 2:19 AM (in response to rkilgore)> The SessionBean cannot really stay available after
> redeployment - JBoss would have to maintain two
> versions of the EJB in parallel to achieve something
> like that. The typical error message I get when
> trying to reuse a stale bean instance from a servlet
> is "Method not found".
>
> Not sure about your HTTP session issue - are you sure
> JBoss persists the session information to disk to
> survive shutdown/startup?
>
> /Sebastian
I'm not certain about the shutdown-startup, but
definitely after a redeploy it reloads the HTTP
sessions. I had to replace all my component interfaces
with wrappers that keep the interface as a transient
variable and the primary key for serialization and
then re-invoke findByPrimaryKey() whenever needed.
Now everything is happy, and I never get crashes
anymore (unless I use IBM's JVM for Linux, in which
case I get a ClassFormatError every few re-deploys
for some reaosn).