Home Help Center

Find object in object adapter by its proxy

dnnbgdnnbg Member Delyan NestorovOrganization: Dolphin-3Project: Study
Hi,

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

Comments

  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    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());
    
  • dnnbgdnnbg Member Delyan NestorovOrganization: Dolphin-3Project: Study
    Thanks.
    That's what I needed!
Sign In or Register to comment.