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.
posted 12 years ago
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