• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is ResultSet is serializable ??

 
R SundaraPandian
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
 
Suneel Setlur
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
 
Thomas Paul
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!