Results 1 to 2 of 2

Thread: How adapter id is generated

  1. #1
    aozarov is offline Registered User
    Name: Arie Ozarov
    Organization: hi5 Networks
    Project: SOA
    Join Date
    Mar 2008
    Posts
    39

    How adapter id is generated

    Hi,

    What is the logic that an icegridnode applies when generating a configuration to create an adapterID (if one was not explicit specified) and when using an IceBox?

    From what I can see it is:

    IceBoxName + "." + adapter_name + "." + service_name

    Is that correct and can I assume that it is part of the protocol/api and is not
    going to change in the future?

    Also, why does it add the service_name?
    What happens in the case of multiple services using/sharing the same adapter?

    Thanks.

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,643
    Hi Arie,

    The default adapter ID for an IceBox service object adapter is "${server}.${service}.<adapter name>" where ${server} and ${service} are substituted with the server ID and service name. This shouldn't change.

    The service name is added to avoid clashes if multiple services declare an object adapter with the same name with different communicators. If multiple services somehow share the same object adapter, only one of them should declare the adapter in its XML descriptor and you can define manually the adapter ID to ensure it doesn't contain the service name.

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. IceGrid: How to obtain server ID from object ID
    By jharriot in forum Help Center
    Replies: 1
    Last Post: 07-20-2010, 04:13 AM
  2. Order of ids in id list
    By hawesie in forum Help Center
    Replies: 3
    Last Post: 09-10-2009, 07:27 PM
  3. slice definition for type ID?
    By peterlspot in forum Comments
    Replies: 5
    Last Post: 11-28-2007, 11:13 PM
  4. retrieve proxy id
    By steepLearningC in forum Help Center
    Replies: 5
    Last Post: 12-09-2005, 03:01 AM
  5. Type id
    By ganzuoni in forum Comments
    Replies: 5
    Last Post: 07-02-2003, 03:09 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
  •