Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB lazy loading

 
kri shan
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How EJB's lazy loading is solved?
 
kri shan
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any update ?
 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by lazy loading? can you explian with some example.

Regards
Shrinivas
 
Annie Smith
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic