[jboss-user] [EJB 3.0] - Initialize collection or Detach Collection

simit_kul do-not-reply at jboss.com
Wed May 13 03:18:13 EDT 2009


Hi all,
   I have a query regarding usage of Seam provided Extended Persistant Context. I have unique requirement. (So this takes care of Lazy Loading Exception) 
   I need to show a Tree view. Now, as it is obvious, there is Parent and child (one to many) relationship between Top Level element and their child elements. Tree can be expanded up to 5 level.
   Now, Initially for Top level, there would be some 10 to 30 nodes available. Now, when User clicks on any certain node, then due to Lazy loading, I will be getting data for its children. So far , so good. Now If User, collapse this Parent node, I want to Initialize this collection or Detach objects in this collection, so that these objects could be garbage collected.
 Also, I am using Rich Faces for GUI, thus, I am using Stateful Session Bean as a ActionListener and on this bean Persistance context object will reside. This bean will have scope as Session.
Does EJB 3.0 persistence context provide any such mechanism???

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230674#4230674

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230674



More information about the jboss-user mailing list