Rickard

Can you tell me what the idleTimeoutSeconds is set to in your bean
descriptor.

Regards,
Hamid

-----Original Message-----
From: Rickard �berg [mailto:[EMAIL PROTECTED]]
Sent: 23 November 1999 13:50
To: [EMAIL PROTECTED]
Subject: Re: Modelling Read Only Database Tables


Hi!

"Lahooti, Hamid" wrote:
> So cached instance beans , refresh their state from the database in
ejbLoad.
> so much for caching then. :)

If you have a legacy app that changes data behind the EJB-server back,
then sure, you wont get much benefit from instance caching. But the
possibility is there, if such usage is not done.

> Lets agree to disagree on this one. Another poster reported here
> earlier that IBM WebSphere too passivates after transaction completes.

I never agree to anything I know is wrong, and this is wrong. :-/ WLS
does not passivate after transaction commit. If WebSphere does I don't
know, but I would be surprised if this is the case.

> >As above, in such cases ejbLoad is called upon transaction begin, or to
> >be very precise: when the instance is first enlisted in the transaction
> >as a resource.
> As above, what's the point of caching if you refresh every time.

You do not need to do activation/passivation all the time, which are
potentially very costly operations. I have a bean which does ALOT (and I
mean loads) of stuff during ejbActivate and ejbPassivate. My whole
system would crumble if the bean was passivated after each transaction.
Thank god it is not ;-)

/Rickard

--
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to