-
Bug
-
Resolution: Obsolete
-
Major
-
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.