Navjot, This sounds like a good design and follows suggested best practices.
>From a pure architectural perspective, I think your existing solution is best. However if you are concerned with performance, then you may want to look into the FastLaneReader pattern. http://java.sun.com/blueprints/patterns/FastLaneReader.html My .02. robert > -----Original Message----- > From: Navjot Singh [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 05, 2004 11:48 AM > To: Struts Users Mailing List > Subject: [OT] EJB/Struts Design Question > > > Hi, > > I have a typical case of Category and Product entity bean established in 1:N > relationship. > > In the client tier, I wish to display the list of products along with their > category names. > > 1. Struts Action make a call to ProductDelegate. > 2. ProductDelgate to ProductManager (SessionBean). > 3. ProductManager to ProductHome (to get entity refs of Product Entities) > > __My kind of solution__ > > 1. I retreive collection of Product at ProductManager. All the product > instances will have category as CMR. > 2. In session bean, i will iterate over the collection of products. > 3. For each product, i create a new ProductCategoryVO which will contain > values from product and category entities. > 4. Then return the collection of ProductCategoryVO to my action class. > 5. Action class wll further pass on to JSP. > > To me, it sounds like heavy work. What's the best way to handle this? > Any help/pointers are appreciated. > > --------------- > regards > Navjot Singh > Net4India Ltd. > > If there's only one answer, then this must not be a very interesting topic. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]