Forums Register Login

Can i return Resultset in rmi???

+Pie Number of slices to send: Send
folks i have prblm..if i try to return resultset
it throws exception??
any sugeestions?
thnks

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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..
------------------
Right! We're on it! Let's get to work tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1356 times.
Similar Threads
How to sort a ResultSet
Transferring ResultSet from EJB to Servlet???
Fetch direction
Resultset Size
Accessing Connection pool
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:25:06.