Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serialzation is not working

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this out. Pay attention to the link to the CachedRowSet at the bottom (JDBC RowSet Implementation on the linked->linked page).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic