On Tue, Jun 19, 2001 at 02:24:40PM -0700, Mike korcynski wrote:
> Hello:
>    I am currently working on a project using JBoss
> 2.2.  I have stumbled upon a strange problem I was
> hoping someone could help me with.  I have a method in
> a session bean that will perform an ad hoc query on a
> database and return the results to the client in a
> ResultSet.  However, it appears that the
> implementation of ResultSet is not serializable:
>   "Caused by: java.io.NotSerializableException:     
> org.opentools.minerva.jdbc.ResultSetInPool"
> 
>    Am I doing something wrong or is this some sort of
> bug?  It would seem useful to be able to return a
> ResultSet to a client.  Can someone advise?  Thank you
> for your time.

It means, that the ResultSet object you're getting cannot
be passed to the client because it is not serializable.
Generally it is bad style to try this as this gives your
client a direct database access.
One solution is to copy the data of the resultset into
as custom data structure (e.g. a java.util.List of FooDataObjects)
and pass this structure to your client.
Have a look at the mail-archive the www.theserverside.com,
you should find some more info to this topic there.

-billy.

-- 
Philipp Meier                              o-matic GmbH
Gesch�ftsf�hrer                  Pfarrer-Wei�-Weg 16-18
Tel.: +49-(0)700-66284236                     89077 Ulm

PGP signature

Reply via email to