I am trying to use the ServiceBindingSet with a port offset to run multiple 
instances of JBoss on the same machine. I want to control the HTTP port 
explicitly though. It looks like the "override" parameter is supposed to give 
me the ability to do this, but I can't seem to get it to work. Here is my 
service binding set below. When JBoss starts, I get HTTP listening on port 9100:

  | 13:29:10,087 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on 
http-myserver.mydomain.com%2F10.55.1.10-9100
  | 


  |  <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>
  |                 <bean 
class="org.jboss.services.binding.ServiceBindingMetadata">
  |                     <property 
name="serviceName">jboss:service=Naming</property>
  |                     <property name="bindingName">Port</property>
  |                     <property name="port">1799</property>
  |                     <property name="description">The listening socket for 
the Naming service</property>
  |                 </bean>
  |             </set>
  |         </parameter>
  |       </constructor>
  |    </bean>
  | 

Am I incorrect in my approach, or am I misunderstanding the concept?

Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250257#4250257

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250257
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to