Suhel,

            Lazy loading takes place when the data for a field in an entity is not loaded from the

underlying datasource until an accessor for that field/s is called.

 

Aggressive loading takes place when all the data for an entity is loaded at ejbLoad() time.

 

 

For BMP the user has a choice of performing Aggressive or Lazy loading, or a mixture of both.

e.g. Basic Account data may be loaded at ejbLoad() time and extended Account data loaded

from the datasource only if an accessor for that data is called.

 

For CMP the container implementor (i.e. App server vendor) makes the choice for lazy or

aggressive loading (or both) and implements this in the generated CMP beans.

 

In all cases the choice of Lazy or Aggressive loading should be transparent to the bean client.

 

regards DGA

 

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]] On Behalf Of Suhel Ahmed
Sent: 08 February 2002 18:18
To: [EMAIL PROTECTED]
Subject: [EJB-INT] Lazy Loading vs Aggressive Loading

 

Hey

Guys

what is the different between the Lazy loading and Aggressive Loading in Entity beans, is their any difference between BMP and CMP type beans wrt different Loading.

 

-Suhel

Reply via email to