Hi!


> marc fleury wrote:
> >
> > I don't think the context is supposed to be stored with the passivate...
can
> > someone double check that?
>
> Just read the spec and the code, setSessionContext is called only once
> (during the bean creation).  After that, there is no
> "unsetSessionContext" as for entities, so the context must remain valid
> across passivation/activation.  So we have to store it.
>
> So I guess StatefulSessionContextImpl (and EJBContextImpl) have to be
> real classes, unless anybody sees a way out...

Hm.. the SessionInputStream should take care of that. SSCI should only have
transient state so it is ok to store it. When we activate a session with SIS
there is code in there to detect a SSCI and replace it with the real one.
Doesn't that work you say? It should.

/Rickard




Reply via email to