Archived
This forum has been archived. Please start a new discussion on GitHub.
Objects and Proxies
Hello,
I am an old, very happy, Orbacus user.....
It's very nice to see you again, together...
I come to my question.
Having an interface such as:
interface Y {
X getX();
X *getXProxy();
}
I generate java class with the possibility to get returned on the client
side a X and XPrx.
The use of XPrx on the client is quite normal, but what confuses me
is the signature of X that includes a Current object.
What is the sense of allowing the access of such an interface on
the client side ?
Thanks in advance,
Guido.
I am an old, very happy, Orbacus user.....
It's very nice to see you again, together...
I come to my question.
Having an interface such as:
interface Y {
X getX();
X *getXProxy();
}
I generate java class with the possibility to get returned on the client
side a X and XPrx.
The use of XPrx on the client is quite normal, but what confuses me
is the signature of X that includes a Current object.
What is the sense of allowing the access of such an interface on
the client side ?
Thanks in advance,
Guido.
0
Comments
-
Every class derived from Ice::Object can also be used as a servant, and therefore it needs the Current parameter. If you don't use X as a servant, then I'm afraid you have to pass null as Current parameter in Java. For C++, there is a null default argument.0