jQuery in Action, 2nd edition*
The moose likes JDBC and the fly likes Is ResultSet is serializable ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Is ResultSet is serializable ??" Watch "Is ResultSet is serializable ??" New topic
Author

Is ResultSet is serializable ??

R SundaraPandian
Greenhorn

Joined: Jan 16, 2001
Posts: 8
Hi,
I am learining EJB/WebLogic.
From my client program,I am sending one query to my EJB component where it is actually fetching records on certain criteria.How do I return the result set to my Client side,
where it has to display some specific fields.I heard that Result set it not serializable If so how can I do it..Please help me out.
Sundar
Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
Hi Sundar
Retrieve the values from the ResultSet and store it to a vector.
You send the vector as all collection classes are by default implementing serializable
Regards
Suneel


Suneel
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
ResultSet is not serializable because it does not actually contain the data but only provides the methods to get the data from the database.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is ResultSet is serializable ??