Archived
This forum has been archived. Please start a new discussion on GitHub.
Getting Self ObjectProxy during Servant Startup
Is there anyway to get a ObjectProxy of the very Servant you trying to instantiate in the servant locator?
Basically I want a servant with an objectproxy of itself so when communicating with another object they can call back using the object proxy. Obviously the other object can look it up using some sort of id but I was thinking if there is a quick way to do this.
Thanks.
Basically I want a servant with an objectproxy of itself so when communicating with another object they can call back using the object proxy. Obviously the other object can look it up using some sort of id but I was thinking if there is a quick way to do this.
Thanks.
0
Comments
-
Since you know the current, yes, you can construct a proxy to the object being located. Something like the following:
Ice::ObjectPrx proxy = curr.adapter->createProxy(curr.id);
0