[jboss-cvs] JBossAS SVN: r59654 - branches/Branch_4_2/varia/src/resources/services/binding.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jan 15 15:01:41 EST 2007


Author: tom.elrod at jboss.com
Date: 2007-01-15 15:01:40 -0500 (Mon, 15 Jan 2007)
New Revision: 59654

Modified:
   branches/Branch_4_2/varia/src/resources/services/binding/sample-bindings.xml
Log:
JBAS-3990 - adding service bindings for remoting connector

Modified: branches/Branch_4_2/varia/src/resources/services/binding/sample-bindings.xml
===================================================================
--- branches/Branch_4_2/varia/src/resources/services/binding/sample-bindings.xml	2007-01-15 19:23:31 UTC (rev 59653)
+++ branches/Branch_4_2/varia/src/resources/services/binding/sample-bindings.xml	2007-01-15 20:01:40 UTC (rev 59654)
@@ -1,6 +1,6 @@
 <!--
    $Id$
-		
+
    A sample configuration for the binding service which defines different
    port configurations (ports-default, ports-01, ports-02) for running multiple
    JBoss instances in parallel on the same machine.
@@ -92,7 +92,7 @@
          delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
          <delegate-config portName="ServerBindPort"/>
          <binding port="4446"/>
-      </service-config>      
+      </service-config>
 
       <!-- ********************* iiop-service.xml ****************** -->
 
@@ -101,7 +101,7 @@
          >
          <delegate-config portName="Port"/>
          <binding port="3528"/>
-      </service-config>      
+      </service-config>
 
 
       <!-- ********************* jmx-rmi-adaptor.sar **************** -->
@@ -149,14 +149,14 @@
          <delegate-config portName="URLPort"/>
          <binding port="8080"/>
       </service-config>
-      
+
       <!-- ********************* hajndi-jms-ds.xml **************** -->
-      
+
       <!-- The JMS provider loader -->
       <service-config name="jboss.mq:service=JMSProviderLoader,name=HAJNDIJMSProvider"
          delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
-         <!-- 
-              MAKE SURE java.naming.provider.url 
+         <!--
+              MAKE SURE java.naming.provider.url
               PORT IS SAME AS HA-JNDI ABOVE !!!
          -->
          <delegate-config>
@@ -187,7 +187,7 @@
          <delegate-config>
             <attribute name="InvokerURLSuffix">:${port}/invoker/EJBInvokerServlet</attribute>
         </delegate-config>
-         <!-- 
+         <!--
             MUST BE THE SAME AS
             TOMCAT HTTP CONNECTOR BELOW !!!
              -->
@@ -211,7 +211,7 @@
          <delegate-config>
             <attribute name="InvokerURLSuffix">:${port}/invoker/JMXInvokerServlet</attribute>
         </delegate-config>
-         <!-- 
+         <!--
             MUST BE THE SAME AS
             TOMCAT HTTP CONNECTOR BELOW !!!
              -->
@@ -225,7 +225,7 @@
          <delegate-config>
             <attribute name="InvokerURLSuffix">:${port}/invoker/readonly/JMXInvokerServlet</attribute>
         </delegate-config>
-         <!-- 
+         <!--
             MUST BE THE SAME AS
             TOMCAT HTTP CONNECTOR BELOW !!!
              -->
@@ -264,6 +264,39 @@
         <binding port="8080" host="${jboss.bind.address}"/>
       </service-config>
 
+      <!-- ********************* remoting **************** -->
+
+       <!-- *** remoting connector *** -->
+       <service-config name="jboss.remoting:service=Connector,transport=socket"
+          delegateClass="org.jboss.services.binding.XSLTConfigDelegate">
+          <delegate-config>
+             <xslt-config configName="Configuration"><![CDATA[
+               <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+
+                  <xsl:output method="xml" />
+                  <xsl:param name="port"/>
+
+                  <xsl:template match="/">
+                     <xsl:apply-templates/>
+                  </xsl:template>
+
+                  <xsl:template match="attribute[@name='serverBindPort']">
+                     <attribute type="java.lang.String" name="serverBindPort"><xsl:value-of select='$port'/></attribute>
+                  </xsl:template>
+
+                  <xsl:template match="*|@*">
+                     <xsl:copy>
+                        <xsl:apply-templates select="@*|node()"/>
+                     </xsl:copy>
+                  </xsl:template>
+               </xsl:stylesheet>
+          ]]>
+          </xslt-config>
+          </delegate-config>
+          <binding port="4446" />
+       </service-config>
+
+
       <!-- ********************* hsqldb-ds.xml ********************** -->
 
       <!-- Hypersonic related services when using the tcp/ip access
@@ -366,15 +399,15 @@
       </service-config>
 
       <!-- ********************* jboss messaging ********************** -->
-      
-      <service-config name="jboss.messaging:service=Connector,transport=socket" 
-                      delegateClass="org.jboss.services.binding.AttributeMappingDelegate"> 
-         <delegate-config> 
-            <attribute name="InvokerLocator">socket://${jboss.bind.address}:4457/?dataType=jms&amp;serializationtype=jms&amp;timeout=0&amp;leasePeriod=20000&amp;socket.check_connection=false&amp;marshaller=org.jboss.jms.server.remoting.JMSWireFormat&amp;unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat</attribute> 
-         </delegate-config> 
-         <binding port="4457"/> 
+
+      <service-config name="jboss.messaging:service=Connector,transport=socket"
+                      delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
+         <delegate-config>
+            <attribute name="InvokerLocator">socket://${jboss.bind.address}:4457/?dataType=jms&amp;serializationtype=jms&amp;timeout=0&amp;leasePeriod=20000&amp;socket.check_connection=false&amp;marshaller=org.jboss.jms.server.remoting.JMSWireFormat&amp;unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat</attribute>
+         </delegate-config>
+         <binding port="4457"/>
       </service-config>
- 
+
    </server>
 
    <!-- ********************************************************** -->
@@ -449,7 +482,7 @@
          <delegate-config portName="ServerBindPort"/>
          <binding port="4546"/>
       </service-config>
-      
+
       <!-- ********************* iiop-service.xml ****************** -->
 
       <service-config name="jboss:service=CorbaORB"
@@ -457,7 +490,7 @@
          >
          <delegate-config portName="Port"/>
          <binding port="3628"/>
-      </service-config>      
+      </service-config>
 
 
       <!-- ********************* jmx-rmi-adaptor.sar **************** -->
@@ -505,14 +538,14 @@
          <delegate-config portName="URLPort"/>
          <binding port="8180"/>
       </service-config>
-      
+
       <!-- ********************* hajndi-jms-ds.xml **************** -->
-      
+
       <!-- The JMS provider loader -->
       <service-config name="jboss.mq:service=JMSProviderLoader,name=HAJNDIJMSProvider"
          delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
-         <!-- 
-              MAKE SURE java.naming.provider.url 
+         <!--
+              MAKE SURE java.naming.provider.url
               PORT IS SAME AS HA-JNDI ABOVE !!!
          -->
          <delegate-config>
@@ -543,7 +576,7 @@
          <delegate-config>
             <attribute name="InvokerURLSuffix">:${port}/invoker/EJBInvokerServlet</attribute>
         </delegate-config>
-         <!-- 
+         <!--
             MUST BE THE SAME AS
             TOMCAT HTTP CONNECTOR BELOW !!!
              -->
@@ -557,7 +590,7 @@
          <delegate-config>
             <attribute name="InvokerURLSuffix">:${port}/invoker/JMXInvokerServlet</attribute>
         </delegate-config>
-         <!-- 
+         <!--
             MUST BE THE SAME AS
             TOMCAT HTTP CONNECTOR BELOW !!!
              -->
@@ -571,7 +604,7 @@
          <delegate-config>
             <attribute name="InvokerURLSuffix">:${port}/invoker/readonly/JMXInvokerServlet</attribute>
         </delegate-config>
-         <!-- 
+         <!--
             MUST BE THE SAME AS
             TOMCAT HTTP CONNECTOR BELOW !!!
              -->
@@ -612,12 +645,44 @@
         <binding port="8180" host="${jboss.bind.address}"/>
       </service-config>
 
+      <!-- ********************* remoting **************** -->
+
+       <!-- *** remoting connector *** -->
+       <service-config name="jboss.remoting:service=Connector,transport=socket"
+          delegateClass="org.jboss.services.binding.XSLTConfigDelegate">
+          <delegate-config>
+             <xslt-config configName="Configuration"><![CDATA[
+               <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+
+                  <xsl:output method="xml" />
+                  <xsl:param name="port"/>
+
+                  <xsl:template match="/">
+                     <xsl:apply-templates/>
+                  </xsl:template>
+
+                  <xsl:template match="attribute[@name='serverBindPort']">
+                     <attribute type="java.lang.String" name="serverBindPort"><xsl:value-of select='$port'/></attribute>
+                  </xsl:template>
+
+                  <xsl:template match="*|@*">
+                     <xsl:copy>
+                        <xsl:apply-templates select="@*|node()"/>
+                     </xsl:copy>
+                  </xsl:template>
+               </xsl:stylesheet>
+          ]]>
+          </xslt-config>
+          </delegate-config>
+          <binding port="5446" />
+       </service-config>
+
       <!-- ********************* hsqldb-ds.xml ********************** -->
 
-      <!-- Hypersonic related services 
-      
+      <!-- Hypersonic related services
+
             Only if using TCP setup (local file setup by default)
-      
+
       <service-config name="jboss.jca:service=ManagedConnectionFactory,name=DefaultDS"
          delegateClass="org.jboss.services.binding.XSLTConfigDelegate"
       >
@@ -718,15 +783,15 @@
       </service-config>
 
       <!-- ********************* jboss messaging ********************** -->
-      
-      <service-config name="jboss.messaging:service=Connector,transport=socket" 
-                      delegateClass="org.jboss.services.binding.AttributeMappingDelegate"> 
-         <delegate-config> 
-            <attribute name="InvokerLocator">socket://${jboss.bind.address}:4557/?dataType=jms&amp;serializationtype=jms&amp;timeout=0&amp;leasePeriod=20000&amp;socket.check_connection=false&amp;marshaller=org.jboss.jms.server.remoting.JMSWireFormat&amp;unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat</attribute> 
-         </delegate-config> 
-         <binding port="4557"/> 
+
+      <service-config name="jboss.messaging:service=Connector,transport=socket"
+                      delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
+         <delegate-config>
+            <attribute name="InvokerLocator">socket://${jboss.bind.address}:4557/?dataType=jms&amp;serializationtype=jms&amp;timeout=0&amp;leasePeriod=20000&amp;socket.check_connection=false&amp;marshaller=org.jboss.jms.server.remoting.JMSWireFormat&amp;unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat</attribute>
+         </delegate-config>
+         <binding port="4557"/>
       </service-config>
-      
+
    </server>
 
    <!-- ********************************************************** -->
@@ -809,9 +874,9 @@
          >
          <delegate-config portName="Port"/>
          <binding port="3728"/>
-      </service-config>      
-   
+      </service-config>
 
+
       <!-- ********************* jmx-rmi-adaptor.sar **************** -->
 
       <service-config name="jboss.jmx:type=Connector,name=RMI"
@@ -857,14 +922,14 @@
          <delegate-config portName="URLPort"/>
          <binding port="8280"/>
       </service-config>
-      
+
       <!-- ********************* hajndi-jms-ds.xml **************** -->
-      
+
       <!-- The JMS provider loader -->
       <service-config name="jboss.mq:service=JMSProviderLoader,name=HAJNDIJMSProvider"
          delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
-         <!-- 
-              MAKE SURE java.naming.provider.url 
+         <!--
+              MAKE SURE java.naming.provider.url
               PORT IS SAME AS HA-JNDI ABOVE !!!
          -->
          <delegate-config>
@@ -895,7 +960,7 @@
          <delegate-config>
             <attribute name="InvokerURLSuffix">:${port}/invoker/EJBInvokerServlet</attribute>
         </delegate-config>
-         <!-- 
+         <!--
             MUST BE THE SAME AS
             TOMCAT HTTP CONNECTOR BELOW !!!
              -->
@@ -909,7 +974,7 @@
          <delegate-config>
             <attribute name="InvokerURLSuffix">:${port}/invoker/JMXInvokerServlet</attribute>
         </delegate-config>
-         <!-- 
+         <!--
             MUST BE THE SAME AS
             TOMCAT HTTP CONNECTOR BELOW !!!
              -->
@@ -923,7 +988,7 @@
          <delegate-config>
             <attribute name="InvokerURLSuffix">:${port}/invoker/readonly/JMXInvokerServlet</attribute>
         </delegate-config>
-         <!-- 
+         <!--
             MUST BE THE SAME AS
             TOMCAT HTTP CONNECTOR BELOW !!!
              -->
@@ -964,10 +1029,43 @@
         <binding port="8280" host="${jboss.bind.address}"/>
       </service-config>
 
+      <!-- ********************* remoting **************** -->
+
+       <!-- *** remoting connector *** -->
+       <service-config name="jboss.remoting:service=Connector,transport=socket"
+          delegateClass="org.jboss.services.binding.XSLTConfigDelegate">
+          <delegate-config>
+             <xslt-config configName="Configuration"><![CDATA[
+               <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+
+                  <xsl:output method="xml" />
+                  <xsl:param name="port"/>
+
+                  <xsl:template match="/">
+                     <xsl:apply-templates/>
+                  </xsl:template>
+
+                  <xsl:template match="attribute[@name='serverBindPort']">
+                     <attribute type="java.lang.String" name="serverBindPort"><xsl:value-of select='$port'/></attribute>
+                  </xsl:template>
+
+                  <xsl:template match="*|@*">
+                     <xsl:copy>
+                        <xsl:apply-templates select="@*|node()"/>
+                     </xsl:copy>
+                  </xsl:template>
+               </xsl:stylesheet>
+          ]]>
+          </xslt-config>
+          </delegate-config>
+          <binding port="6446" />
+       </service-config>
+
+
       <!-- ********************* hsqldb-ds.xml ********************** -->
 
       <!-- Hypersonic related services
-      
+
             Only if using TCP setup (local file setup by default)
 
       <service-config name="jboss.jca:service=ManagedConnectionFactory,name=DefaultDS"
@@ -1013,7 +1111,7 @@
 
 
       <!-- ********************* tomcat ***************** -->
-      
+
       <service-config name="jboss.web:service=WebServer"
          delegateClass="org.jboss.services.binding.XSLTFileDelegate"
          >
@@ -1070,15 +1168,15 @@
       </service-config>
 
       <!-- ********************* jboss messaging ********************** -->
-      
-      <service-config name="jboss.messaging:service=Connector,transport=socket" 
-                      delegateClass="org.jboss.services.binding.AttributeMappingDelegate"> 
-         <delegate-config> 
-            <attribute name="InvokerLocator">socket://${jboss.bind.address}:4657/?dataType=jms&amp;serializationtype=jms&amp;timeout=0&amp;leasePeriod=20000&amp;socket.check_connection=false&amp;marshaller=org.jboss.jms.server.remoting.JMSWireFormat&amp;unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat</attribute> 
-         </delegate-config> 
-         <binding port="4657"/> 
+
+      <service-config name="jboss.messaging:service=Connector,transport=socket"
+                      delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
+         <delegate-config>
+            <attribute name="InvokerLocator">socket://${jboss.bind.address}:4657/?dataType=jms&amp;serializationtype=jms&amp;timeout=0&amp;leasePeriod=20000&amp;socket.check_connection=false&amp;marshaller=org.jboss.jms.server.remoting.JMSWireFormat&amp;unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat</attribute>
+         </delegate-config>
+         <binding port="4657"/>
       </service-config>
-      
+
    </server>
 
    <!-- ********************************************************** -->
@@ -1143,7 +1241,7 @@
          <delegate-config portName="ServerBindPort"/>
          <binding port="4746"/>
       </service-config>
-      
+
       <!-- ********************* iiop-service.xml ****************** -->
 
       <service-config name="jboss:service=CorbaORB"
@@ -1151,9 +1249,9 @@
          >
          <delegate-config portName="Port"/>
          <binding port="3828"/>
-      </service-config>      
-   
+      </service-config>
 
+
       <!-- ********************* jmx-rmi-adaptor.sar **************** -->
 
       <service-config name="jboss.jmx:type=Connector,name=RMI"
@@ -1199,14 +1297,14 @@
          <delegate-config portName="URLPort"/>
          <binding port="8380"/>
       </service-config>
-      
+
       <!-- ********************* hajndi-jms-ds.xml **************** -->
-      
+
       <!-- The JMS provider loader -->
       <service-config name="jboss.mq:service=JMSProviderLoader,name=HAJNDIJMSProvider"
          delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
-         <!-- 
-              MAKE SURE java.naming.provider.url 
+         <!--
+              MAKE SURE java.naming.provider.url
               PORT IS SAME AS HA-JNDI ABOVE !!!
          -->
          <delegate-config>
@@ -1237,7 +1335,7 @@
          <delegate-config>
             <attribute name="InvokerURLSuffix">:${port}/invoker/EJBInvokerServlet</attribute>
         </delegate-config>
-         <!-- 
+         <!--
             MUST BE THE SAME AS
             TOMCAT HTTP CONNECTOR BELOW !!!
              -->
@@ -1251,7 +1349,7 @@
          <delegate-config>
             <attribute name="InvokerURLSuffix">:${port}/invoker/JMXInvokerServlet</attribute>
         </delegate-config>
-         <!-- 
+         <!--
             MUST BE THE SAME AS
             TOMCAT HTTP CONNECTOR BELOW !!!
              -->
@@ -1265,7 +1363,7 @@
          <delegate-config>
             <attribute name="InvokerURLSuffix">:${port}/invoker/readonly/JMXInvokerServlet</attribute>
         </delegate-config>
-         <!-- 
+         <!--
             MUST BE THE SAME AS
             TOMCAT HTTP CONNECTOR BELOW !!!
              -->
@@ -1309,7 +1407,7 @@
       <!-- ********************* hsqldb-ds.xml ********************** -->
 
       <!-- Hypersonic related services
-      
+
             Only if using TCP setup (local file setup by default)
 
       <service-config name="jboss.jca:service=ManagedConnectionFactory,name=DefaultDS"
@@ -1412,15 +1510,15 @@
       </service-config>
 
       <!-- ********************* jboss messaging ********************** -->
-      
-      <service-config name="jboss.messaging:service=Connector,transport=socket" 
-                      delegateClass="org.jboss.services.binding.AttributeMappingDelegate"> 
-         <delegate-config> 
-            <attribute name="InvokerLocator">socket://${jboss.bind.address}:4757/?dataType=jms&amp;serializationtype=jms&amp;timeout=0&amp;leasePeriod=20000&amp;socket.check_connection=false&amp;marshaller=org.jboss.jms.server.remoting.JMSWireFormat&amp;unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat</attribute> 
-         </delegate-config> 
-         <binding port="4757"/> 
+
+      <service-config name="jboss.messaging:service=Connector,transport=socket"
+                      delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
+         <delegate-config>
+            <attribute name="InvokerLocator">socket://${jboss.bind.address}:4757/?dataType=jms&amp;serializationtype=jms&amp;timeout=0&amp;leasePeriod=20000&amp;socket.check_connection=false&amp;marshaller=org.jboss.jms.server.remoting.JMSWireFormat&amp;unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat</attribute>
+         </delegate-config>
+         <binding port="4757"/>
       </service-config>
-      
+
    </server>
 
 </service-bindings>




More information about the jboss-cvs-commits mailing list