File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Serialzation is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Serialzation is not working" Watch "Serialzation is not working" New topic

Serialzation is not working

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

Hola ranchers.
I have created RMI server that connects to a database and executes a
query against it.
I want to return a ResultSet to the client so it can manupilate it.
the problem is I can't return a ResultSet to the client because it is
not a Serializable.
even if I created an object that implements the Serializable interface
and wrapped the ResultSet within it, I will not be able to pass it to
the client because (as you know, if you want to create a Serialize object,
each of its instance variables should be Serializable in turn).
so how to work around this problem ?
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
Check this out. Pay attention to the link to the CachedRowSet at the bottom (JDBC RowSet Implementation on the linked->linked page).

I agree. Here's the link:
subject: Serialzation is not working
Similar Threads
Designing Reports
Question for Kyle or WAS Expert : Help with creating EJB ResultSet
RMI Object Serialization problem
Make an interface serializable
how can return a ResultSet object from a server to client?