Results 1 to 4 of 4

Thread: adapter element can't be a child of icebox element

  1. #1
    jharris is offline Registered User
    Name: John Harris
    Organization: Endeavor Trading
    Project: Trading
    Join Date
    Sep 2010
    Posts
    8

    adapter element can't be a child of icebox element

    Ice 3.4.1 on Ubuntu Linux:

    The documentation says:
    The element may optionally contain a single adapter element that configures the IceBox service manager's object adapter and must have the name IceBox.ServiceManager.
    But when I do that in my template:
    Code:
          <icebox id="${icebox-name}" exe="icebox" activation="on-demand">
            <adapter name="IceBox.ServiceManager" id="${instance-name}.IceBox.ServiceManager" endpoints="tcp"/>
          </icebox>
    The node complains thus:
    error in <Templates.xml> descriptor, line 60, column 8:
    <adapter> element can't be a child of an <icebox> element

    ...which contradicts the documentation.

    What's wrong?

  2. #2
    xdm's Avatar
    xdm
    xdm is online now ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruña, Spain
    Posts
    588
    The documentation you quoted refers to the Service element, see also:
    Service Descriptor Element - Ice 3.4 - ZeroC

  3. #3
    jharris is offline Registered User
    Name: John Harris
    Organization: Endeavor Trading
    Project: Trading
    Join Date
    Sep 2010
    Posts
    8
    The documentation I quoted was from the <icebox> Descriptor Element, not the <service> element as you say.

    Here it is from the PDF version:

    38.17.9 IceBox
    An icebox element defines an IceBox server to be deployed on a node. It typi-
    cally contains at least one service element (Section 38.17.22), and may supply
    additional information such as command-line options (Section 38.17.26), environ-
    ment variables (Section 38.17.27), configuration properties (Section 38.17.17)
    and a server distribution (Section 38.13).

    The element may optionally contain a single adapter element
    (Section 38.17.1) that configures the IceBox service manager’s object adapter and
    must have the name IceBox.ServiceManager. If no such element is
    defined, the service manager’s object adapter is disabled. Note however that the
    service manager’s functionality remains available as an administrative facet even
    when its object adapter is disabled. See Chapter 43 for more information on
    IceBox.

  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 John,

    Thank you for reporting this inconsistency. This is a bug in the documentation: you can't create an <adapter> child element to configure IceBox.ServiceManager as an indirect object adapter. I don't see a use-case for configuring IceBox.ServiceManager as an indirect object adapter.

    If you want to configure IceBox.ServiceManager as a direct object adapter, you can use regular properties to do so, for example:

    Code:
     <properties>
         <property name="IceBox.ServiceManager.Endpoints" value="tcp -h 127.0.0.1"/   
      </properties>
    (alternatively, configure the Admin facet / Ice.Admin object adapter, like in the IceGrid/icebox demo).

    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. Bad path element for Java
    By myrosia in forum Help Center
    Replies: 5
    Last Post: 05-19-2010, 01:09 PM
  2. <node-template> XML element?
    By n2503v in forum Comments
    Replies: 0
    Last Post: 01-29-2008, 11:32 PM
  3. Replies: 1
    Last Post: 12-22-2005, 05:58 AM
  4. Replies: 2
    Last Post: 11-16-2005, 07:23 PM
  5. problem debugging child processes
    By galbe in forum Help Center
    Replies: 2
    Last Post: 04-05-2004, 09:47 AM

Tags for this Thread

Posting Permissions

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