Results 1 to 2 of 2

Thread: DefaultAdapter in Config Files

  1. #1
    loheron is offline Registered User
    Name: Larry OHeron
    Organization: LLE/UofR
    Project: distributed apps
    Join Date
    Nov 2006
    Posts
    24

    DefaultAdapter in Config Files

    In creating an Ice config file, please explain the difference between the two examples below:

    In example 1 I believe that the Ice runtime automatically reads in the properties and applies them when I say in the code: createObjectAdapter("DefaultAdapter"). The client would say something like stringToProxy("UserInterface@FSDClient").
    Example 1:
    DefaultAdapter.AdapterId=FSDClient
    DefaultAdapter.Endpoints=tcp

    In example 2 I would say createObjectAdapter("FSDClient") and the client would say something like stringToProxy("UserInterface@FSDClient").
    Example 2:
    FSDClient.AdapterId=FSDClient
    FSDClient.Endpoints=tcp

    The questions are:
    - What is the difference as far as the Ice runtime is concerned between the two examples?
    - What is the recommendation for my own user property naming conventions, e.g.
    DefaultAdapter.MyName=LarryOHeron
    FSDClient.MyCity=Rochester
    State.MyState=NewYork

    Thank you,
    Lawrence O'Heron
    Univ of Rochester/Laboratory for Laser Energetics
    250 E. River Rd.
    Rochester NY 14612
    www.lle.rochester.edu

  2. #2
    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 Larry,

    The adapter name (DefaultAdapter in your first example and FSDClient in your second example) is purely local to an Ice communicator. It's just a key that the communicator uses to look-up properties when you call createObjectAdapter(name) on this communicator.

    So, as far as the Ice runtime is concerned, your two examples are very similar. Outside the communicator (what goes on the wire in your proxy for example), the behavior is identical since the only thing that matters is the AdapterId ... and you use the same AdapterId in your two examples.

    See http://www.zeroc.com/doc/Ice-3.3.0-I...ties.31.2.html for our recommendations regarding property names.

    Best regards,
    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. Variables in config Files
    By JensAernouts in forum Help Center
    Replies: 2
    Last Post: 02-24-2011, 08:07 AM
  2. Parsing the config files
    By MMOInteractive in forum Help Center
    Replies: 3
    Last Post: 12-13-2010, 02:50 PM
  3. Is there a standard way to esacpe '#' in config files?
    By Markus Bernhard in forum Help Center
    Replies: 2
    Last Post: 12-02-2007, 06:54 AM
  4. Use of variables in config files
    By xdm in forum Help Center
    Replies: 1
    Last Post: 03-24-2005, 06:15 PM
  5. Moving config files into a database?
    By SteveWampler in forum Help Center
    Replies: 1
    Last Post: 09-03-2003, 12:49 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
  •