aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Is ResultSet is serializable ??" Watch "Is ResultSet is serializable ??" New topic

Is ResultSet is serializable ??

R SundaraPandian

Joined: Jan 16, 2001
Posts: 8
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.
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

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:
subject: Is ResultSet is serializable ??
Similar Threads
client in ejb
Values in VO getting lost in Stub
ResultSet Serailization
Client and EJB Classes On Different Servers
Question for Kyle or WAS Expert : Help with creating EJB ResultSet