Home Help Center

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.

Comments

  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    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);
    
Sign In or Register to comment.