Archived
This forum has been archived. Please start a new discussion on GitHub.
changing proxy identity
Hi
I have a proxy to an object A, in a remote machine. Now i need to access another object (object in the same remote machine.
I want to get the proxy to object B without making a remote call.
Right now i am doing 'proxyToString(proxyA)' and then replacing 'A' with 'B' in the string, and then calling 'stringToProxy' to get the proxy to 'B".
This method doesnt feel like a clean way of doing it. Is there a better way to the same thing?
Something along the lines of:
proxyToB = proxyToA;
proxyToB.SetIdentity( "B" );
would be much cleaner.
Is something like this possible?
Thanks in Advance!!
Regards
Sreeram
I have a proxy to an object A, in a remote machine. Now i need to access another object (object in the same remote machine.
I want to get the proxy to object B without making a remote call.
Right now i am doing 'proxyToString(proxyA)' and then replacing 'A' with 'B' in the string, and then calling 'stringToProxy' to get the proxy to 'B".
This method doesnt feel like a clean way of doing it. Is there a better way to the same thing?
Something along the lines of:
proxyToB = proxyToA;
proxyToB.SetIdentity( "B" );
would be much cleaner.
Is something like this possible?
Thanks in Advance!!
Regards
Sreeram
0
Comments
-
Just use:
proxyToB = proxyToA.ice_newIdentity(Util.stringToIdentity("B"));0