Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is ResultSet is serializable ??  RSS feed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ResultSet is not serializable because it does not actually contain the data but only provides the methods to get the data from the database.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!