This content has been marked as final.
Show 2 replies
-
1. Re: Marshaling ResultSet
hstech Dec 17, 2001 5:41 PM (in response to jmschust)A common solution is to populate one or more Value Objects with the contents of the ResultSet. The Value Objects need to be serializable classes.
The problem with passing a ResultSet is that, in order to pass an object from the server to the client, the object needs to be serializable. However, since ResultSet defines only an interface, you can't guarantee whether or not the implementation of the ResultSet is serializable or not. This could easily change between vendors, so your app loses it's portability.
HTH,
Aaron. -
2. Re: Marshaling ResultSet
l.g. Dec 18, 2001 1:19 PM (in response to jmschust)Try CachedRowSet
http://developer.java.sun.com/developer/earlyAccess/crs/
It works great for me. However it does not work with Sybase as is and maybe with some other DBMS (there is a workaround)