-
Bug
-
Resolution: Done
-
Major
-
EAP 5.0.1
-
None
A user can specify a specific host in the <jboss-home>/server/<server-dir>/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml using a "hostName" property. So, for example, to fix the host to "someAddress" on the SNMP Adapter, one could configure
<bean class="org.jboss.services.binding.ServiceBindingMetadata">
<property name="serviceName">jboss.jmx:name=SnmpAgent,service=snmp,type=adaptor</property>
<property name="port">1161</property>
<property name="hostName">someAddress</property>
<property name="description">Socket for the SNMP adaptor MBean</property>
</bean>
However, when this is done, the default value is still used. To cause the specified value to be utilized, one must add the fixedHostName property, set to "true":
<bean class="org.jboss.services.binding.ServiceBindingMetadata">
<property name="serviceName">jboss.jmx:name=SnmpAgent,service=snmp,type=adaptor</property>
<property name="port">1161</property>
<property name="hostName">someAddress</property>
<property name="fixedHostName">true</property>
<property name="description">Socket for the SNMP adaptor MBean</property>
</bean>
According to the wiki documentation [1], this should not be necessary: "fixedHostName – whether runtime ServiceBindings created from this metadata are not allowed to override the hostName property value to use the defaultHostName value from the specified ServiceBindingSet (see below). By default this is true if a hostName is configured, false otherwise."
[1] http://community.jboss.org/wiki/AS5ServiceBindingManager