2 Replies Latest reply on Mar 25, 2009 2:46 PM by Jesse Vasbinder

    Ports-04 bindings

    Jesse Vasbinder Newbie

      How do you allow for a ports-04 instance? I want to be able to have a working start-up parameter for -Djboss.service.binding.set=ports-04

      I tried modifying bindings.xml to have a ports-04 tag but it wasn't recognized during start-up.

      I haven't tried it on 5.0.1, only on version 5.0.0.

        • 1. Re: Ports-04 bindings
          Brian Stansberry Master

          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">
           <inject bean="PortsDefaultBindings"/>
           <inject bean="Ports01Bindings"/>
           <inject bean="Ports02Bindings"/>
           <inject bean="Ports03Bindings"/>
           <inject bean="Ports04Bindings"/>
           <!-- 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">
           <!-- The name of the set -->
           <!-- Default host name -->
           <!-- The port offset -->
           <!-- Set of bindings to which the "offset by X" approach can't be applied -->

          • 2. Re: Ports-04 bindings
            Jesse Vasbinder Newbie

            That worked, thanks Brian!