Hi Bryan,
I'm not able to reproduce your problem.
To help us to understand it, could you please do those three
different tests:
- take off the 'ismodified optimization',
- take off the passivation-timeout value,
- take off the 'ismodified optimization' and the passivation-timeout
value.
Thanks.
Hélène.
"Bryan (Mailing Lists)" wrote:
>
> Here is how I implement isModified:
>
> private transient boolean isDirty;
> public boolean isModified() { return isDirty; }
> public void setModified(boolean flag) { isDirty = flag; }
>
> public void ejbStore() throws javax.ejb.EJBException,
> java.rmi.RemoteException {
> setModified(false);
> }
>
> public void ejbLoad() throws javax.ejb.EJBException,
> java.rmi.RemoteException {
> setModified(false);
> }
>
> // All of my "set" methods follow this format
> public void setXXX(String xxx) { setModified(true); this.xxx = xxx; }
>
> Is this the correct implementation?
>
> Also I should add that my entity beans were passivating correctly in JOnAS
> 2.1, but when I upgraded to 2.2.4 the other day, I started to have this
> problem (with no changes to my code, except the addition of the
> <passivation-timeout> value).
>
> Lastly, my entity beans DO eventually passivate, if I shut down JOnAS or
> execute "JonasAdmin -sync".
>
> Thanks in advance,
>
> Bryan
>
> ----- Original Message -----
> From: "Hélène JOANIN" <[EMAIL PROTECTED]>
> To: "Bryan Field-Elliot" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, January 26, 2001 7:24 AM
> Subject: Re: Entity bean never passivating
>
> > Hi Bryan,
> >
> > It seems that you use the 'ismodified optimization' for container
> > managed entity beans.
> > May be the isModified() method of your bean is not correct ?
> > This method is responsible to tell if the state of the bean has been
> > changed.
> > Doing so, the container is able to know if it must store data in the
> > database
> > or if it's useless.
> >
> > I hope this help you.
> > Kind regards.
> > Hélène.
> >
> > PS: See chapter JOnAS specificity of the Bean Programmer's Guide:
> > http://www.objectweb.org/jonas/jonas_root/doc/Program.html,
> > for information about the 'ismodified optimization'
--
-=- Hélène JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www.evidian.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.objectweb.org
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".