File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EJB lazy loading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB lazy loading" Watch "EJB lazy loading" New topic

EJB lazy loading

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1432
How EJB's lazy loading is solved?
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1432
Any update ?
Shrinivas Mujumdar
Ranch Hand

Joined: Aug 27, 2004
Posts: 328
What do you mean by lazy loading? can you explian with some example.

Annie Smith
Ranch Hand

Joined: Mar 05, 2005
Posts: 172
Lazy loading in EJB means to load only related beans when you need to access those beans.

If you are using CMP, the lazy loading is managed by the container. Most of the containers provide an option to enable/disable them. For BMP, it has to be handled in the code.

I'd suggest you to take a look at Mastering EJB by Ed Roman, since it is available for download (Google for that) and I'm too lazy to type a code on-the-fly.

Cheers!<br /><b>Annie</b>
I agree. Here's the link:
subject: EJB lazy loading
jQuery in Action, 3rd edition