Is it possible to pass a JDBC connection object from...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jason_Tsai
Posted On:   Tuesday, January 23, 2001 08:51 AM

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

Re: Is it possible to pass a JDBC connection object from...

Posted By:   Gabriel_Artaud  
Posted On:   Thursday, May 3, 2001 12:59 PM

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

About | Sitemap | Contact