Lazy-Loading is the default behavior of most ejb containers.  That is, when ejbFindByXXX is called, it only checks for row-existence.  Only subsequent business method invocation will trigger ejbLoad.

However, some containers optimize CMP behavior, when a flag is set, to agressively load all rows in ejbFindByXXX.  WL 6.1 goes one step further and allows you to declare field groups you want to aggressively load.  This is very helpful if you have 3 lightweight columns and one blob column, and only want to agressively load the first 3 column for particular finder methods.

BMP is limited in that since YOU define the sql statements in ejbFind and ejbLoad, you have little control over container-caching mechanism.  However, I've wrote a pattern a while back, FatKey, which allows aggressive load BMPs:

http://www.theserverside.com/patterns/thread.jsp?thread_id=4540

Gene

  Suhel Ahmed <[EMAIL PROTECTED]> wrote:

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



Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!

Reply via email to