Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7206

Description of ServiceBindingSet override bindings parameter is inaccurate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • None
    • None
    • None

      An example of setting ServiceBindingSet bindings:

      <bean name="Ports03Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
      <constructor>
      <!-- The name of the set -->
      <parameter>ports-03</parameter>
      <!-- Default host name -->
      <parameter>${jboss.bind.address}</parameter>
      <!-- The port offset -->
      <parameter>400</parameter>
      <!-- Set of bindings to which the "offset by X" approach can't be applied -->
      <parameter>
      <set elementClass="org.jboss.services.binding.ServiceBindingMetadata">
      <bean class="org.jboss.services.binding.ServiceBindingMetadata">
      <property name="serviceName">jboss.web:service=WebServer</property>
      <property name="port">8700</property>
      <property name="description">JBoss Web HTTP connector socket; also drives the values for the HTTPS and AJP sockets
      </property>
      <property name="serviceBindingValueSourceConfig"><inject bean="JBossWebConnectorXSLTConfig"/></property>
      </bean>
      </set>
      </parameter>
      </constructor>
      </bean>

      This comment needs to be fixed:

      [code]<!-- Set of bindings to which the "offset by X" approach can't be applied -->[/code]

      Should be something more like this:

      [code]<!-- Set of bindings that are specific to this ServiceBindingSet -->[/code]

      The comment is inaccurate because the "offset by X" approach is applied. Users should add

      <property name="fixedPort">true</property> to the ServiceBindingMetadata to disable the offset binding.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: