Archived

This forum has been archived. Please start a new discussion on GitHub.

Find object in object adapter by its proxy

Hi,

I need to find coresponding object to object proxy passed by client to server.
i.e. find SomeObjectPtr from SomeOjectPrx.

Comments

  • matthew
    matthew NL, Canada
    You can do that by calling find on the object adapter on which the servant is registered.

    For example:
    Ice::ObjectPtr servant = objectAdapter->find(someProxy->ice_getIdentity());
    
  • Thanks.
    That's what I needed!