Home Help Center

IceGrid Allocation

mwilsonmwilson Member Mark WilsonOrganization: Integrated Computer Solutions, Inc.Project: TBD ✭✭✭

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?



  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff

    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.

Sign In or Register to comment.