Archived

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

IceGrid Allocation

Hi,

If I configure an object to be allocatable in an IceGrid XML descriptor, does that mean that the ONLY way to get a proxy to that object is to allocate it via a session?

Another question: let's say I have a manager object that can return a proxy to another object that it manages access to. If I allocate the manager object and call "ProxyX* getX()" to obtain a proxy to the managed object, the client would still have access to the managed object even after the allocation is released, right?

Thanks!

Comments

  • benoit
    benoit Rennes, France
    Hi,

    You don't have to allocate the object through a session to get its proxy. You could for example simply create its proxy from a string with the stringToProxy communicator method.

    To answer your second question, yes, the allocation mechanism doesn't prevent access to objects unless you take special steps to do so. This is described in the Ice manual, see 38.10.5 Security in the Ice manual for more information.

    Cheers,
    Benoit.