• Post Reply Bookmark Topic Watch Topic
  • New Topic

Related Lazy Loading in EJB

 
simon paul
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Could anyone kindly tell me how can i have the advantages in Lazy Loading
in EJB.Suppose i have a huge ResultSet to Read & there are too much
interdependency Now how do i manage/optimize Reading in CMP / BMP & have
the advantages of Lazy Loading or limited amount of record set by set
pushed ?
kindly provide Example / URL where i can get details.
 
Sergiu Truta
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in BMP when you load an entity, for the relationship you have to load only the foreigh key. load the related entity only when you need it's data using that foreign key.
in CMP lazy-loading happens behind the scenes.
you could read more about this is Ed Roman's "Mastering EJB 2" found here
http://www.theserverside.com/books/masteringEJB/downloadbook.jsp
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!