Archived
This forum has been archived. Please start a new discussion on GitHub.
hi, a problem of object proxy handle.
in Help Center
I've met a problem of object proxy handle.
interface resultset
{
next();
int getInt();
double getDouble();
......
};
interface mydatabase
{
resultset executeQuery(string sql);
};
For example, I've implemented the interface mydatabase (class MySQLDB). And the executeQuery method returns a resultsetprx.
I know if I test the program with a client and a server, all will be OK!
But, I just want write an application with class "MySQLDB".
Can resultsetprx be used in a single program without communication between client and server?
Any of your help will be appreciated!!!
Sean Ho.
interface resultset
{
next();
int getInt();
double getDouble();
......
};
interface mydatabase
{
resultset executeQuery(string sql);
};
For example, I've implemented the interface mydatabase (class MySQLDB). And the executeQuery method returns a resultsetprx.
I know if I test the program with a client and a server, all will be OK!
But, I just want write an application with class "MySQLDB".
Can resultsetprx be used in a single program without communication between client and server?
Any of your help will be appreciated!!!
Sean Ho.
0
Comments
-
Yes, proxies are location transparent, meaning that you can use a proxy to invoke on a collocated Ice object as well as on a remote Ice object.0