RMI and JDBC ResultSet with NotSerializable Exception

I am developing a project

The basic archeiecture is like this:

a reporting tool

a virtualDB

a real DB

the reporting tool request for data from virtualDB, the virtualDB actually fetch the result for it.

The virtualDB is a remote object using RMI which can be called in the reporting tool(stub)

the virtualDB is connecting to the real DB through JDBC-ODBC driver.

Now comes the problem, when the virtualDB has the ResultSet which is return by JDBC-ODBC. I cannot pass the ResultSet from remote site to my reporting tool, at run time, it will throw NotSerializable Exception, I guess this is because the JDBC-ODBC ResultSet does not implement that interface.

So is there any way I can solve this problem to allow the reporting tool(client) receive the ResultSet that VirtualDB has got?

Thanks in advance, any comment would be a great help for me!!!

[913 byte] By [ZHXa] at [2007-10-3 3:14:13]
# 1
You'll have to turn the ResultSet into something like a Map<Integer,Map><Integer,String>> at the RMI server end.
ejpa at 2007-7-14 21:05:21 > top of Java-index,Core,Core APIs...
# 2
It is worth looking at Map. I will look into that, thanks.
ZHXa at 2007-7-14 21:05:21 > top of Java-index,Core,Core APIs...
# 3
I have sovled the problem, using Map.Thank you so much!
ZHXa at 2007-7-14 21:05:21 > top of Java-index,Core,Core APIs...