It's mostly container specific behavior. You don't have any container-independant guarantees of behavior, and even so, some app-servers that allow clustering will behave differently based upon the DB capabilities and whether the app (EJB's) are clustered or not.
 
See the ejb 1.1 spec, section 9.1.10 -- Commit Options, for some degree of clarification.
-----Original Message-----
From: Kevin Gaasch [mailto:[EMAIL PROTECTED]]
Sent: Martes, 04 de Septiembre de 2001 16:29
To: [EMAIL PROTECTED]
Subject: Re: question on entity beans

Dawn,
    Is that container specific?  Or is that defined behaviour in the spec?

Kevin E. Gaasch
Java Consultant
Canyon, Texas
Home: (806)655-6460
Work: (806)324-4100 x4215
Cell: (806)674-1523
email: [EMAIL PROTECTED]

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]On Behalf Of Dawn Lewis
Sent: Tuesday, September 04, 2001 2:49 PM
To: [EMAIL PROTECTED]
Subject: Re: question on entity beans

This depends on a few things.
The ejbStore() & ejbLoad() are only called the first time and the data is cached.  IF you are running in a non-clustered environment.
 
If you are running in a clustered environment and the bean is only a Read-Only bean, the container will have the same behavior - ejbStore() & ejbLoad() only the first time and cache the result.
 
However, if you are running in a clustered environment and the bean is a Read-Write bean, the ejbLoad() & ejbStore() are called every time.
 
Dawn L. Lewis
Southwest Airlines
Fuel Managment, Systems Department
(214) 792-3966
[EMAIL PROTECTED]

>>> Vin�cius de Faria Silva <[EMAIL PROTECTED]> 09/04/01 02:06PM >>>
Hey guys, i'd like to clear a doubt, if anyone could help me...
 
as far as i know everytime a transactional entity bean's method is invoked the container executes before the method ejbLoad and afterwards the method ejbStore, my question is: with this policy how can the container cache business data?
 
Vin�cius

For your protection, this e-mail message has been scanned for Viruses.

Visit us at http://www.neoris.com/


Reply via email to