-
1. Re: ManagedPersistenceContext and passivation
kapitanpetko May 18, 2009 10:07 AM (in response to gonorrhea)
Arbi Sookazian wrote on May 18, 2009 07:40:
1) What class(es) and method(s) is/are calling the above sessionWillPassivate() method?ManagedPersistenceContext implements HttpSessionActivationListener, so it's being called by the Servlet container.
It gets called on session passivation and replication (in a cluster).
2) What exactly is the context of this comment above? Does it refer to cases where a typical CONVERSATION-scoped SFSB modeling a LRC is passivated to disk by the EJB container? This component is a JavaBean, so I'm a little unclear about what is going on here and what the concern is regarding passivation.You shold probably ask Dan Allen about the comment, but Cf. JBSEAM-3728
Since the SMPC lives in the session, any SMPC related cleanup/init is done on session passivation/activation. SFSB passivation has
nothing to do with this.A bit OT, I was having trouble with the IllegalStateException being thrown when, say, a search is in progress, thus breaking session replication. I chose to override the component and not throw, and that works for me, although this is probably not ideal.
The whole SMPC in a cluster affair is a bit undocumented and probably not well specified (or I am missing something...)
HTH
-
2. Re: ManagedPersistenceContext and passivation
gonorrhea May 18, 2009 5:22 PM (in response to gonorrhea)
Nikolay Elenkov wrote on May 18, 2009 10:07:
The whole SMPC in a cluster affair is a bit undocumented and probably not well specified (or I am missing something...)You're right. Perhaps an advanced topic but that needs a sticky and/or knowledgebase
treatment
.