Results 1 to 4 of 4

Thread: Does ICE have Smart Proxy?

  1. #1
    dashie is offline Registered User
    Name: Maurizio Merli
    Organization: Università degli Studi di Milano
    Project: N/A
    Join Date
    Dec 2004
    Location
    Milan, Italy
    Posts
    26

    Does ICE have Smart Proxy?

    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.

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Please see this post regarding our support policy here on these forums.

  3. #3
    dashie is offline Registered User
    Name: Maurizio Merli
    Organization: Università degli Studi di Milano
    Project: N/A
    Join Date
    Dec 2004
    Location
    Milan, Italy
    Posts
    26

    I've updated my signature

    I've updated my signature

  4. #4
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    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:

    Code:
    interface Person
    {
       // various operations
    };
    interface Registry
    {
       Person* find(string name);
    };
    You could change it to be:
    Code:
    class Person
    {
         // various operations
        Person* proxy; // proxy to the remote Person
    };
    interface Registry
    {
        Person find(string name);
    };
    and the returned Person object behaves like a smart proxy.

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. smart pointer down cast
    By peterlspot in forum Help Center
    Replies: 3
    Last Post: 05-24-2008, 09:37 AM
  2. Can I use Ice's smart pointer with my own type?
    By timeguest in forum Help Center
    Replies: 1
    Last Post: 06-27-2005, 04:17 AM
  3. Smart cache
    By Claes in forum Comments
    Replies: 0
    Last Post: 09-11-2004, 12:54 PM
  4. About the smart pointer.
    By level in forum Help Center
    Replies: 11
    Last Post: 08-04-2004, 08:16 PM
  5. Puzzle on smart pointer
    By soloman817 in forum Help Center
    Replies: 1
    Last Post: 07-13-2004, 05:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •