Results 1 to 5 of 5

Thread: Ice::Communicator

  1. #1
    gesly is offline Registered User
    Name: Gesly George
    Organization: AQR
    Project: Service Framework
    Join Date
    Mar 2007
    Posts
    19

    Ice::Communicator

    Hi,

    What does calling Ice::initialize(...) multiple times mean? What I am trying to understand is does calling initialize multiple times result in multiple Ice Communicators?

    Gesly

  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
    Yes, each call to initialize() creates a new communicator. It is not usually necessary to create more than one.

    Take care,
    - Mark

  3. #3
    gesly is offline Registered User
    Name: Gesly George
    Organization: AQR
    Project: Service Framework
    Join Date
    Mar 2007
    Posts
    19
    what do multiple communicators translate to? I mean logically what does that mean, having multiple communicators?

  4. #4
    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
    You can think of a communicator as an instance of the Ice run time. Each communicator is independently configurable and serves as the container for the resources used by the run time (connections, thread pools, etc.).

    An application typically creates multiple communicators when it needs each one to use different configurations. For example, consider an application that uses SSL and needs to supply multiple identities (i.e., certificates). In this case, it could create a communicator for each identity and configure the IceSSL plug-in of each communicator with the appropriate certificate.

    Take care,
    - Mark

  5. #5
    gesly is offline Registered User
    Name: Gesly George
    Organization: AQR
    Project: Service Framework
    Join Date
    Mar 2007
    Posts
    19
    OK. That makes sense now...I see why you would want different 'instance' of the Ice runtime.

    Thanks
    Gesly

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Questions about IceBox and the Ice.Communicator interface
    By heinz_mueller in forum Help Center
    Replies: 1
    Last Post: 10-26-2010, 04:23 AM
  2. why is my Ice.Application.communicator() is null?
    By cnhome in forum Help Center
    Replies: 1
    Last Post: 07-01-2010, 11:26 PM
  3. Ice.Communicator.shutdown() not working
    By Djaunl in forum Help Center
    Replies: 2
    Last Post: 06-18-2007, 03:26 PM
  4. Ice 3.1: Communicator.setDefaultContext()
    By stephan in forum Help Center
    Replies: 8
    Last Post: 07-20-2006, 03:40 PM
  5. do i need the second communicator ?
    By nsns in forum Help Center
    Replies: 1
    Last Post: 10-25-2004, 10:06 AM

Posting Permissions

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