Objects and Proxies

ganzuoniganzuoni Guido AnzuoniOrganization: IndividualProject: No specific projectMember ✭✭
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.

Comments

  • marcmarc FloridaMarc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications EngineAdministrators, ZeroC Staff ZeroC Staff
    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.
Sign In or Register to comment.