Is there in ICE the CORBA smart proxy equivalent?
Somethig like this?
http://www.cs.wustl.edu/~schmidt/ACE...t_Proxies.html
They can be usefull to implement layer like cache, or other things similar.
|
|
Is there in ICE the CORBA smart proxy equivalent?
Somethig like this?
http://www.cs.wustl.edu/~schmidt/ACE...t_Proxies.html
They can be usefull to implement layer like cache, or other things similar.
Maurizio Merli
Università degli Studi di Milano
Please see this post regarding our support policy here on these forums.
Hi Maurizio,
There is no smart proxy in Ice: we don't provide a way to customize the generated proxy classes and register them with the Ice runtime.
Naturally, you could define your own proxy-wrapper class, and in your code use this proxy wrapper instead of Ice proxies directly. Another possibility, if you don't mind changing your Slice definitions, is to wrap the proxy in a class object. E.g. say you have:
You could change it to be:Code:interface Person { // various operations }; interface Registry { Person* find(string name); };
and the returned Person object behaves like a smart proxy.Code:class Person { // various operations Person* proxy; // proxy to the remote Person }; interface Registry { Person find(string name); };
Cheers,
Bernard
Bernard Normier
ZeroC, Inc.
There are currently 1 users browsing this thread. (0 members and 1 guests)