Hi All, I have some doubts about the performance of CMP and CMR in EJB2 AND JBOSS3.
Scenario is like this: I have 1 bean called EMPLOYEE. It has got 1:N relationship with GROUPS bean. This relationship is defined thru CMR. I have a method on EMPLOYEE : Public GroupModel[] getGroupModels() { // get all the groups Collection groups = this.getGroups(); GroupModel[] arr= new GroupModel[groups.size()]; Iterator itr = groups.iterator(); Int i=0; while(itr.hasNext()) { Group g = (Group)itr.next(); arr[i] = g.getModel(); i++; } return arr; } So, First container will get the collection of EJBObjects for Group bean. Then, it will start loading the beans one by one. QUESTION is if the no. of records is high (100s) then will it not be slow? If yes then is it better to go for Direct JBDC Calls instead of using Beans for this purpose? PLEASE HELP Any real life experience is more than welcome. Thanks, Saroj ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Gadgets, caffeine, t-shirts, fun stuff. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user