"Burkhard Vogel" <[EMAIL PROTECTED]> wrote:

> > hi,
> > you certainly can do this.
> > Both methods would be called retrieveAllTabularData();
> > the ejb prefix is reserved for finders (FindBy...) create, remove,
> activate,
> > passivate...
> > BUT I would strongly recommend NOT to pass an ResultSet as a return value.
> > You cann't be sure that a ResultSet won't lose its DB-connection!
> > Either use a Hashtable or suns CachedRowSet as return value!
> > Burkhard

Yes you are right, the class which implements the ResultSet interface has
to be serialisable*, so resultsets which need an active statement or
connection cannot be used anyway.

So I use the CachedRowSet class as the actual returned type.

I will try it now in the RemoteInterface, it did not work yesterday, but
maybe I've made some stupid mistake.

--
gR

*they could be remotable as well, by I want to minimalize the network
traffic.



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to