Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can i return Resultset in rmi???  RSS feed

 
Raghu NeoN
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
folks i have prblm..if i try to return resultset
it throws exception??
any sugeestions?
thnks

 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a well known problem. RMI uses serialization, and ResultSet is not serializable (because it holds on to resources in the database). You need to extract the data from the ResultSet into another, serializable, data structure (eg. a vector) first.
 
Raghu NeoN
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thnks for ur time
yeah i read abt it in servlets forum....
i had been workin on java since 6 months...so i dont have strong hold on it..
my doubt is if i implement the serializabale interface to the method which returns the resultset...... it works??
thnks..
------------------
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!