[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Listing Behavior
Hey all,
I have some questions regarding listing behaviors. Let's say I would like
to return a list of products from the database for an html/servlet/jsp
client to display. There is a method in a session bean that returns the
results for this listing behavior.
!st Q: If the list that is returned spans multiple entity beans, How
should I go about getting this list back? Work with the Entity Beans or
just connection directly to the tables with a complex query?
2nd Q: Once I have the list built through either of the above mentioned
methods, What, in your experience, has been the best way to return this
data to the client? XML string, Collection, array, or ... ?
I have been reading O'Reilly's Enterprise EJB and the author uses a
stateful session bean which has a method that returns a delimited string
array by way of a complex sql statement to access the data.
Anyway, I'm interested in 'hearing' what your real-life experience has
been with this, what worked best and why.
Thanks a bunch in advance,
Kevin Stoll
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/