Is it possible to pass a JDBC connection object from client to server? Both are written in Java.

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
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact