Results 1 to 4 of 4

Thread: IcePack and IceE

  1. #1
    ssergei is offline Registered User
    Name: Sergey Shumko
    Organization: BBSO/NJIT
    Project: New Solar Telescope
    Join Date
    Jan 2005
    Location
    California
    Posts
    16

    IcePack and IceE

    Our existing project uses IcePack's locator registry to register and locate servants. Now I'm planning to add a Pocket PC to our system. Is it possible to register PPC's servant with IcePack registry and also retrieve proxies to other objects from that registry? It looks like there is no direct support of the IcePack service in IceE. If it is possible, could you provide some guidelines? In our desktop applications we use IcePack's Admin object to add or remove objects to or from the registry. But I can't use it in IceE.
    Sergey Shumko
    research scientist
    NJIT http://www.njit.edu
    New Solar Telescope's Telescope Control System

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    With a little bit of effort you can still access the IcePack registry from an Ice-E application. You'll need to create simplified versions of the IcePack Slice files (Query.ice and Admin.ice) in order to translate them for Ice-E. I suggest removing all of the operations and data types from IcePack::Admin that you do not use. You will also need to remove the inclusion of BuiltinSequences.ice, and supply equivalent sequence definitions. For example, in Query.ice:
    Code:
    #include <Ice/Identity.ice>
    // #include <Ice/BuiltinSequences.ice> // disabled
    module Ice {
        sequence<Object*> ObjectProxySeq;
    };
    ...
    Hope that helps,
    - Mark

  3. #3
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    One other thing: you'll need to specify the --ice command line option when running the translator because the Slice definitions use "Ice" in their names.

    - Mark

  4. #4
    ssergei is offline Registered User
    Name: Sergey Shumko
    Organization: BBSO/NJIT
    Project: New Solar Telescope
    Join Date
    Jan 2005
    Location
    California
    Posts
    16
    Thanks, Mark. It works. I also added and edited Exception.ice.

    Sergey.
    Sergey Shumko
    research scientist
    NJIT http://www.njit.edu
    New Solar Telescope's Telescope Control System

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Please tell me how to use IceE with EVC4?
    By while(1){} in forum Help Center
    Replies: 2
    Last Post: 11-08-2006, 07:45 AM
  2. Replies: 2
    Last Post: 07-02-2006, 09:27 PM
  3. Replies: 1
    Last Post: 04-19-2005, 03:47 AM
  4. Puzzled by IcePack/Locator and IcePack/Query
    By rc_hz in forum Help Center
    Replies: 2
    Last Post: 11-13-2004, 09:41 PM
  5. Replies: 0
    Last Post: 10-21-2004, 05:12 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
  •