Is it possible to pass a JDBC connection object from client to server? Both are written in Java.
Created May 8, 2012
Gabriel Artaud If you mean pass-by-value (copy), I believe it is not the case because it is not possible to do so using RMI.
But, what you may want to do is a RemoteConnection that will be a remote reference to a real Connection.
Doing that the client will be able to use the real connection thru the server.
Than you will create a RemoteStatement that is basically a remote reference to a Statement. This RemoteStatement will have a way to return data using custom serializable equivalent of a ResutSet