Archived

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

confirming expected.

hi,
Since a proxy returned by the connection’s createProxy operation can only be used in the server process and cannot be marshaled ,it is impossible to save such a proxy to freeze. The remedy to achive this goal is to save the identity which will be passed to the createPoxy and then read it out later from freeze and recreate the proxy.
From the ice definition :
nonmutating Object* createProxy(Identity id);

this operation is nonmutating( and idempotent). That is to say, I can get the identical proxy as before saving.

Am I right?


Thanks in advance.


OrNot

Comments

  • marc
    marc Florida
    "nonmutating" simply means that createProxy() doesn't modify the connection object.

    To create a fixed (bi-directional) proxy that is equivalent to one that you have created before, you must make sure that the same identity is used, and that the connection is from the same client.