This content has been marked as final.
Show 2 replies
-
1. Re: Ports-04 bindings
brian.stansberry Mar 23, 2009 1:03 PM (in response to jessev)Should just be a matter of creating a "Ports04Bindings" bean and adding it to the set used by the ServiceBindingManager:
<bean name="ServiceBindingManager" class="org.jboss.services.binding.ServiceBindingManager"> ..... <!-- The sets of bindings --> <property name="serviceBindingSets"> <set> <inject bean="PortsDefaultBindings"/> <inject bean="Ports01Bindings"/> <inject bean="Ports02Bindings"/> <inject bean="Ports03Bindings"/> <inject bean="Ports04Bindings"/> </set> </property> </bean> ...... </bean> ...... <!-- The ports-04 bindings are obtained by taking ports-default and adding 400 to each port value --> <bean name="Ports04Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet"> <constructor> <!-- The name of the set --> <parameter>ports-04</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><null/></parameter> </constructor> </bean>
-
2. Re: Ports-04 bindings
jessev Mar 25, 2009 2:46 PM (in response to jessev)That worked, thanks Brian!