Two Laptop Bag
The moose likes JSP and the fly likes Bean Design Question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Bean Design Question" Watch "Bean Design Question" New topic
Author

Bean Design Question

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
I am calling some beans that return a lot of info for reports. There beans are intenisive db calls.
I have done a variety of things.
*One time I made a huge db call, and then just returned the ResultSet to the jsp.
*One other time, I created an object and then returned an array of obects when the method is called.
Are there other ways? Which is better worse?
I mean this is an object oreintd language so making a lot of objects seems logical except that when we first started, all the objects were like User, Building, Country, intangible stuff.
Since this is for reporting, maybe I can stick all these objects into one clas..
 
 
subject: Bean Design Question
 
Threads others viewed
Pooling in java or EJB ?
Is this good approach to design DB i/f?
tips on cleanup of memory
GC of objects inside Collection
How to control a thread to run in a single instance where the code is deployed in multiple instances
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture