[thelist] Returning large recordsets from EJB container

Chris Johnston fuzzylizard at gmail.com
Tue Dec 14 09:11:07 CST 2004


Hello,

I am not sure if there are any J2EE developers on the list, but I will
ask my question anyways. I am wondering what the limits are on
returning large record sets from session beans to external clients? An
external client would be a java app that exists outside of the java
app server.

Here is the scenario; I have a data value object that when serialized
to disk is about 20K. I want to return that object to a client that
exists outside of the java app server. The client contacts a stateless
session bean and asks for a collection of value objects to be
returned. The question is, how big can this collection be before I
start getting timeouts and other problems? Is it possible to return
5000 objects, or would 150 be a more reasonable number?

The app server in question here is JBoss. Unfortunetaly, I can not
redesign the EJB part of the app to support stateful session beans and
paging as this would be the ideal way of handling this problem.

Thanks,
-- 
chris johnston

www.fuzzylizard.com

"For millions of years, mankind lived just like the animals and
something happened which unleashed the power of our imagination, we
learned to talk."
Pink Floyd


More information about the thelist mailing list