[jboss-svn-commits] JBL Code SVN: r28925 - in labs/jbossesb/trunk/product: rosetta/tests and 3 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Aug 13 04:58:57 EDT 2009
Author: beve
Date: 2009-08-13 04:58:57 -0400 (Thu, 13 Aug 2009)
New Revision: 28925
Added:
labs/jbossesb/trunk/product/install/bindings-as5.xslt
labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/BindingsTransformUnitTest.java
labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/bindings-jboss-beans-as-5-1-0-GA.xml
labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/bindings-jboss-beans-as-5-1-0-GA.xslt
labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/valid-bindings-jboss-beans-as-5-1-0-GA.xml
Removed:
labs/jbossesb/trunk/product/samples/quickstarts/two_servers/resources/bindings-jboss-beans.xml
Modified:
labs/jbossesb/trunk/product/install/build.xml
labs/jbossesb/trunk/product/install/jboss-service-jbossas5.xml
labs/jbossesb/trunk/product/rosetta/tests/build.xml
labs/jbossesb/trunk/product/samples/quickstarts/two_servers/build.xml
labs/jbossesb/trunk/product/samples/quickstarts/two_servers/readme.txt
Log:
Work for https://jira.jboss.org/jira/browse/JBESB-2724 "Problem with ESB and ports configuration on AS 5"
Added: labs/jbossesb/trunk/product/install/bindings-as5.xslt
===================================================================
--- labs/jbossesb/trunk/product/install/bindings-as5.xslt (rev 0)
+++ labs/jbossesb/trunk/product/install/bindings-as5.xslt 2009-08-13 08:58:57 UTC (rev 28925)
@@ -0,0 +1,244 @@
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="urn:jboss:bean-deployer:2.0"
+ xmlns:sbm="urn:jboss:bean-deployer:2.0"
+ exclude-result-prefixes="sbm">
+ <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
+
+
+ <xsl:template match="/sbm:deployment">
+ <xsl:call-template name="add-xslt-beans">
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template match="/sbm:deployment/sbm:bean[@name='SystemPropertyBinder']/sbm:constructor/sbm:parameter/sbm:set">
+ <xsl:call-template name="add-system-property">
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template match="/sbm:deployment/sbm:bean/sbm:constructor/sbm:parameter/sbm:set[@elementClass='org.jboss.services.binding.ServiceBindingMetadata']">
+ <xsl:call-template name="add-to-standard-bindings">
+ <xsl:with-param name="jndiPort" select="1099"/>
+ <xsl:with-param name="webPort" select="8080"/>
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template name="add-xslt-beans">
+ <xsl:copy xml:space="preserve"><xsl:apply-templates select="@*|node()"/>
+ <xsl:text>
+ </xsl:text>
+ <xsl:comment>ESB XSL Transform to apply to jbossesb-properties.xml</xsl:comment><xsl:text>
+ </xsl:text>
+ <bean name="EsbPropertyServiceXSLTConfig" class="org.jboss.services.binding.impl.XSLTServiceBindingValueSourceConfig"><xsl:text>
+ </xsl:text>
+ <constructor><xsl:text>
+ </xsl:text>
+ <parameter>
+ <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+ <xsl:output method="xml"/>
+ <xsl:param name="port"/>
+ <xsl:param name="esbHost"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="property[@name='org.jboss.soa.esb.jndi.server.url']">
+ <xsl:element name="property">
+ <xsl:attribute name="name">org.jboss.soa.esb.jndi.server.url</xsl:attribute>
+ <xsl:attribute name="value"><xsl:value-of select='$esbHost'/>:<xsl:value-of select='$port'/></xsl:attribute>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="*|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet><xsl:text>
+ </xsl:text>
+ </parameter><xsl:text>
+ </xsl:text>
+ <parameter><xsl:text>
+ </xsl:text>
+ <map keyClass="java.lang.String" valueClass="java.lang.String"><xsl:text>
+ </xsl:text>
+ <entry><xsl:text>
+ </xsl:text>
+ <key>esbHost</key><xsl:text>
+ </xsl:text>
+ <value>${jboss.bind.address}</value><xsl:text>
+ </xsl:text>
+ </entry><xsl:text>
+ </xsl:text>
+ </map><xsl:text>
+ </xsl:text>
+ </parameter><xsl:text>
+ </xsl:text>
+ </constructor><xsl:text>
+ </xsl:text>
+ </bean><xsl:text>
+
+ </xsl:text>
+
+ <xsl:comment> XSL Transform to apply to juddi-esb.xml </xsl:comment><xsl:text>
+ </xsl:text>
+ <bean name="EsbJuddiRMIXSLTConfig" class="org.jboss.services.binding.impl.XSLTServiceBindingValueSourceConfig"><xsl:text>
+ </xsl:text>
+ <constructor><xsl:text>
+ </xsl:text>
+ <parameter>
+ <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+
+ <xsl:output method="xml"/>
+ <xsl:param name="esbHost"/>
+ <xsl:param name="port"/>
+ <xsl:param name="webPort"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='java.naming.provider.url']">
+ <entry key="java.naming.provider.url">jnp://<xsl:value-of select='$esbHost'/>:<xsl:value-of select='$port'/></entry>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='juddi.discoveryURL']">
+ <entry key="juddi.discoveryURL">http://<xsl:value-of select="$esbHost"/>:<xsl:value-of select="$webPort"/>/juddi/uddiget.jsp?</entry>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='juddi.proxy.adminURL']">
+ <entry key="juddi.proxy.adminURL">http://<xsl:value-of select="$esbHost"/>:<xsl:value-of select="$webPort"/>/juddi/admin</entry>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='juddi.proxy.inquiryURL']">
+ <entry key="juddi.proxy.inquiryURL">http://<xsl:value-of select="$esbHost"/>:<xsl:value-of select="$webPort"/>/juddi/inquiry</entry>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='juddi.proxy.publishURL']">
+ <entry key="juddi.proxy.publishURL">http://<xsl:value-of select="$esbHost"/>:<xsl:value-of select="$webPort"/>/juddi/publish</entry>
+ </xsl:template>
+
+ <xsl:template match="*|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet><xsl:text>
+ </xsl:text>
+ </parameter><xsl:text>
+ </xsl:text>
+ <parameter><xsl:text>
+ </xsl:text>
+ <map keyClass="java.lang.String" valueClass="java.lang.String"><xsl:text>
+ </xsl:text>
+ <entry><xsl:text>
+ </xsl:text>
+ <key>esbHost</key><xsl:text>
+ </xsl:text>
+ <value>${jboss.bind.address}</value><xsl:text>
+ </xsl:text>
+ </entry><xsl:text>
+ </xsl:text>
+ <entry><xsl:text>
+ </xsl:text>
+ <key>webPort</key><xsl:text>
+ </xsl:text>
+ <value>${org.jboss.esb.web.port}</value><xsl:text>
+ </xsl:text>
+ </entry><xsl:text>
+ </xsl:text>
+ </map><xsl:text>
+ </xsl:text>
+ </parameter><xsl:text>
+ </xsl:text>
+ </constructor><xsl:text>
+ </xsl:text>
+ </bean><xsl:text>
+
+</xsl:text>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template name="add-to-standard-bindings">
+ <xsl:copy xml:space="preserve"><xsl:apply-templates select="@*|node()"/>
+ <xsl:text>
+ </xsl:text>
+ <xsl:comment> ************ ESB Standard Bindings configuration ************ </xsl:comment><xsl:text>
+ </xsl:text>
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata"><xsl:text>
+ </xsl:text>
+ <property name="serviceName">EsbPropertyService</property><xsl:text>
+ </xsl:text>
+ <property name="port">1099</property><xsl:text>
+ </xsl:text>
+ <property name="description">Will process jbossesb-properties using xslt to support substituion of configuration properties.</property><xsl:text>
+ </xsl:text>
+ <property name="serviceBindingValueSourceConfig"><xsl:text>
+ </xsl:text>
+ <inject bean="EsbPropertyServiceXSLTConfig"/><xsl:text>
+ </xsl:text>
+ </property><xsl:text>
+ </xsl:text>
+ </bean><xsl:text>
+
+ </xsl:text>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata"><xsl:text>
+ </xsl:text>
+ <property name="serviceName">EsbJuddiRMIPropertyService</property><xsl:text>
+ </xsl:text>
+ <property name="port">1099</property><xsl:text>
+ </xsl:text>
+ <property name="description">Will process juddi-esb.xml using xslt to support substituion of configuration properties .</property><xsl:text>
+ </xsl:text>
+ <property name="serviceBindingValueSourceConfig"><xsl:text>
+ </xsl:text>
+ <inject bean="EsbJuddiRMIXSLTConfig"/><xsl:text>
+ </xsl:text>
+ </property><xsl:text>
+ </xsl:text>
+ </bean><xsl:text>
+
+ </xsl:text>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template name="add-system-property">
+ <xsl:copy xml:space="preserve"><xsl:apply-templates select="@*|node()"/>
+ <xsl:text>
+ </xsl:text>
+ <xsl:comment>************ ESB System Properties ************ </xsl:comment><xsl:text>
+ </xsl:text>
+ <bean class="org.jboss.services.binding.SystemPropertyBinding"><xsl:text>
+ </xsl:text>
+ <constructor><xsl:text>
+ </xsl:text>
+ <parameter>org.jboss.esb.web.port</parameter><xsl:text>
+ </xsl:text>
+ <parameter class="int"><xsl:text>
+ </xsl:text>
+ <value-factory bean="ServiceBindingManager" method="getIntBinding"><xsl:text>
+ </xsl:text>
+ <parameter>jboss.web:service=WebServer</parameter><xsl:text>
+ </xsl:text>
+ </value-factory><xsl:text>
+ </xsl:text>
+ </parameter><xsl:text>
+ </xsl:text>
+ </constructor><xsl:text>
+ </xsl:text>
+ </bean><xsl:text>
+
+ </xsl:text>
+ </xsl:copy>
+ </xsl:template>
+
+
+ <xsl:template name="identity" match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>
Modified: labs/jbossesb/trunk/product/install/build.xml
===================================================================
--- labs/jbossesb/trunk/product/install/build.xml 2009-08-12 15:18:35 UTC (rev 28924)
+++ labs/jbossesb/trunk/product/install/build.xml 2009-08-13 08:58:57 UTC (rev 28925)
@@ -317,7 +317,7 @@
<!-- soap.esb -->
<copy todir="${deploy.dir}/soap.esb">
- <fileset dir="${org.jboss.esb.dist.lib}/soap.esb" excludes="${messaging.excludes}"/>
+ <fileset dir="${org.jboss.esb.dist.lib}/soap.esb" excludes="${messaging.excludes} jaxb-xjc-2.1.4.jar"/>
</copy>
<!-- slsb.esb -->
@@ -480,11 +480,19 @@
<available property="bindings.exist" file="${bindings.backup.location}" type="file"/>
</target>
- <target name="deploy.bindings" depends="init.bindings.props" unless="bindings.exist" description="Deploys ESB Bindings into the application server">
+ <target name="deploy.bindings" depends="init.bindings.props, deploy.bindings.as4, deploy.bindings.as5" unless="bindings.exist" description="Deploys ESB Bindings into the application server"/>
+
+ <target name="deploy.bindings.as4" if="jbossas4" description="Deploys ESB Bindings into the AS 4.x application server">
<xslt style="bindings.xslt" in="${bindings.location}" out="${bindings.tmp.location}"/>
<move file="${bindings.location}" tofile="${bindings.backup.location}"/>
<move file="${bindings.tmp.location}" tofile="${bindings.location}"/>
</target>
+
+ <target name="deploy.bindings.as5" if="jbossas5" description="Deploys ESB Bindings into the AS 5 application server">
+ <xslt style="bindings-as5.xslt" in="${bindings.location}" out="${bindings.tmp.location}"/>
+ <move file="${bindings.location}" tofile="${bindings.backup.location}"/>
+ <move file="${bindings.tmp.location}" tofile="${bindings.location}"/>
+ </target>
<target name="undeploy.bindings" depends="init.bindings.props" if="bindings.exist" description="Undeploy ESB Bindings from the application server">
<move file="${bindings.backup.location}" tofile="${bindings.location}"/>
Modified: labs/jbossesb/trunk/product/install/jboss-service-jbossas5.xml
===================================================================
--- labs/jbossesb/trunk/product/install/jboss-service-jbossas5.xml 2009-08-12 15:18:35 UTC (rev 28924)
+++ labs/jbossesb/trunk/product/install/jboss-service-jbossas5.xml 2009-08-13 08:58:57 UTC (rev 28925)
@@ -3,9 +3,17 @@
<server>
<mbean code="org.jboss.soa.esb.common.JBossESBPropertyService" name="jboss.esb:service=PropertyService">
- <attribute name="PropertyFile">jbossesb-properties.xml</attribute>
- <attribute name="PropertiesFileDir">${jboss.server.data.dir}</attribute>
- <depends>jboss:service=TransactionManager</depends>
+ <attribute name="PropertyFile">
+ <!-- Use the ServiceBindingManager to process (xslt) jbossesb-properties.xml and set the result to the PropertyFile attribute.-->
+ <value-factory bean="ServiceBindingManager" method="getResourceBinding">
+ <!-- serviceName -->
+ <parameter>EsbPropertyService</parameter>
+ <!-- input -->
+ <parameter>${jboss.server.home.url}${/}deployers${/}esb.deployer${/}/jbossesb-properties.xml</parameter>
+ </value-factory>
+ </attribute>
+ <attribute name="PropertiesFileDir">${jboss.server.data.dir}</attribute>
+ <depends>jboss:service=TransactionManager</depends>
</mbean>
<mbean code="org.jboss.internal.soa.esb.services.registry.RegistryService" name="jboss.esb:service=ESBRegistry">
@@ -13,11 +21,20 @@
</mbean>
<mbean code="org.jboss.internal.soa.esb.dependencies.JuddiRMIService" name="jboss.esb:service=JuddiRMI" description="Juddi RMI Service">
- <attribute name="PropertiesResourceFile">esb.juddi.xml</attribute>
- <attribute name="PropertiesFileDir">${jboss.server.data.dir}</attribute>
- <depends>jboss.jca:service=DataSourceBinding,name=juddiDB</depends>
- <depends>jboss.esb:service=PropertyService</depends>
- </mbean>
+ <attribute name="PropertiesResourceFile">
+ <!-- Use the ServiceBindingManager to process (xslt) esb.juddi.xml and set the result to this PropertyResourceFile attribute.-->
+ <value-factory bean="ServiceBindingManager" method="getResourceBinding">
+ <!-- serviceName -->
+ <parameter>EsbJuddiRMIPropertyService</parameter>
+ <!-- input -->
+ <parameter>${jboss.server.home.url}${/}deployers${/}esb.deployer${/}/esb.juddi.xml</parameter>
+ </value-factory>
+ </attribute>
+ <attribute name="PropertiesFileDir">${jboss.server.temp.dir}</attribute>
+ <depends>jboss.jca:service=DataSourceBinding,name=juddiDB</depends>
+ <depends>jboss.esb:service=PropertyService</depends>
+ <depends>jboss:service=TransactionManager</depends>
+ </mbean>
<mbean code="org.jboss.soa.esb.listeners.message.MessageCounter" name="jboss.esb:service=MessageCounter"/>
Modified: labs/jbossesb/trunk/product/rosetta/tests/build.xml
===================================================================
--- labs/jbossesb/trunk/product/rosetta/tests/build.xml 2009-08-12 15:18:35 UTC (rev 28924)
+++ labs/jbossesb/trunk/product/rosetta/tests/build.xml 2009-08-13 08:58:57 UTC (rev 28925)
@@ -120,6 +120,7 @@
<fileset dir="${org.jboss.esb.module.tests.src.dir}" includes="**/*.xml" />
<fileset dir="${org.jboss.esb.module.tests.src.dir}" includes="**/*.war" />
<fileset dir="${org.jboss.esb.module.tests.src.dir}" includes="**/*.xsd" />
+ <fileset dir="${org.jboss.esb.module.tests.src.dir}" includes="**/*.xslt" />
</copy>
<copy file="${org.jboss.esb.root.dir}/etc/schemas/xml/jbossesb-1.0.1.xsd" todir="${org.jboss.esb.tests.classes.dir}"/>
Added: labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/BindingsTransformUnitTest.java
===================================================================
--- labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/BindingsTransformUnitTest.java (rev 0)
+++ labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/BindingsTransformUnitTest.java 2009-08-13 08:58:57 UTC (rev 28925)
@@ -0,0 +1,90 @@
+/*
+ * JBoss, Home of Professional Open Source Copyright 2009, Red Hat Middleware
+ * LLC, and individual contributors by the @authors tag. See the copyright.txt
+ * in the distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This software is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this software; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
+ * site: http://www.fsf.org.
+ */
+package org.jboss.soa.esb.util;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+
+import javax.xml.transform.Source;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+
+import junit.framework.JUnit4TestAdapter;
+
+import org.apache.commons.io.output.ByteArrayOutputStream;
+import org.custommonkey.xmlunit.XMLAssert;
+import org.custommonkey.xmlunit.XMLUnit;
+import org.jboss.soa.esb.ConfigurationException;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+/**
+ * Test for processing bindings-jboss-beans.xml for AS 5.1.0.GA.
+ * <p/>
+ * Note: that the files used in this test are located in this classes package,
+ * and they are not the ones that are actually used upon deployment.
+ * The idea is that for a new version a of AS we can add more test
+ * methods for them before we include them in our build.
+ *
+ * @author <a href="mailto:dbevenius at jboss.com">Daniel Bevenius</a>
+ * @since 4.7
+ */
+public class BindingsTransformUnitTest
+{
+ private static TransformerFactory transformerFactory;
+
+ @BeforeClass
+ public static void setup()
+ {
+ XMLUnit.setIgnoreWhitespace(true);
+ transformerFactory = TransformerFactory.newInstance();
+ }
+
+ /**
+ * Tests JBoss AS 5.1.0.GA ServiceBindingManager configuration
+ */
+ @Test
+ public void transform_AS_5_1_0_GA() throws ConfigurationException, TransformerException, SAXException, IOException
+ {
+ final Source bindingsXml = new StreamSource(getClass().getResourceAsStream("bindings-jboss-beans-as-5-1-0-GA.xml"));
+ final Source bindinsXslt = new StreamSource(getClass().getResourceAsStream("bindings-jboss-beans-as-5-1-0-GA.xslt"));
+ final InputSource bindingsValid = new InputSource(getClass().getResourceAsStream("valid-bindings-jboss-beans-as-5-1-0-GA.xml"));
+
+ final StreamResult streamResult = new StreamResult(new ByteArrayOutputStream());
+
+ transformerFactory.newTransformer(bindinsXslt).transform(bindingsXml, streamResult);
+
+ final ByteArrayInputStream bin = new ByteArrayInputStream(((ByteArrayOutputStream)streamResult.getOutputStream()).toByteArray());
+ final InputSource transformResult = new InputSource(bin);
+
+ XMLAssert.assertXMLEqual(bindingsValid, transformResult);
+ }
+
+ public static junit.framework.Test suite()
+ {
+ return new JUnit4TestAdapter(BindingsTransformUnitTest.class);
+ }
+
+}
Added: labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/bindings-jboss-beans-as-5-1-0-GA.xml
===================================================================
--- labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/bindings-jboss-beans-as-5-1-0-GA.xml (rev 0)
+++ labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/bindings-jboss-beans-as-5-1-0-GA.xml 2009-08-13 08:58:57 UTC (rev 28925)
@@ -0,0 +1,492 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <!-- The actual SBM from which services obtain binding information -->
+ <bean name="ServiceBindingManager" class="org.jboss.services.binding.ServiceBindingManager">
+
+ <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.system:service=ServiceBindingManager", exposedInterface=org.jboss.services.binding.ServiceBindingManagerMBean.class, registerDirectly=true)</annotation>
+
+ <!-- Here we use the ServiceBindingManagementObject as a factory to create the SBM -->
+ <constructor factoryMethod="getServiceBindingManager">
+ <factory bean="ServiceBindingManagementObject"/>
+ </constructor>
+
+ </bean>
+
+ <!-- Provides management tools with a ProfileService ManagementView
+ interface to the SBM and its components -->
+ <bean name="ServiceBindingManagementObject" class="org.jboss.services.binding.managed.ServiceBindingManagementObject">
+
+ <constructor>
+ <!-- The name of the set of bindings to use for this server -->
+ <parameter>${jboss.service.binding.set:ports-02}</parameter>
+
+ <!-- The binding sets -->
+ <parameter>
+ <set>
+ <inject bean="PortsDefaultBindings"/>
+ <inject bean="Ports01Bindings"/>
+ <inject bean="Ports02Bindings"/>
+ <inject bean="Ports03Bindings"/>
+ </set>
+ </parameter>
+
+ <!-- Base binding metadata that is used to create bindings for each set -->
+ <parameter>
+<inject bean="StandardBindings"/>
+</parameter>
+
+ </constructor>
+ </bean>
+
+
+ <!-- The ports-default bindings are obtained by taking the base bindings and adding 0 to each port value -->
+ <bean name="PortsDefaultBindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
+ <constructor>
+ <!-- The name of the set -->
+ <parameter>ports-default</parameter>
+ <!-- Default host name -->
+ <parameter>${jboss.bind.address}</parameter>
+ <!-- The port offset -->
+ <parameter>0</parameter>
+ <!-- Set of bindings to which the "offset by X" approach can't be applied -->
+ <parameter>
+<null/>
+</parameter>
+ </constructor>
+ </bean>
+
+ <!-- The ports-01 bindings are obtained by taking the base bindings and adding 100 to each port value -->
+ <bean name="Ports01Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
+ <constructor>
+ <!-- The name of the set -->
+ <parameter>ports-01</parameter>
+ <!-- Default host name -->
+ <parameter>${jboss.bind.address}</parameter>
+ <!-- The port offset -->
+ <parameter>100</parameter>
+ <!-- Set of bindings to which the "offset by X" approach can't be applied -->
+ <parameter>
+<null/>
+</parameter>
+ </constructor>
+ </bean>
+
+ <!-- The ports-02 bindings are obtained by taking ports-default and adding 200 to each port value -->
+ <bean name="Ports02Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
+ <constructor>
+ <!-- The name of the set -->
+ <parameter>ports-02</parameter>
+ <!-- Default host name -->
+ <parameter>${jboss.bind.address}</parameter>
+ <!-- The port offset -->
+ <parameter>200</parameter>
+ <!-- Set of bindings to which the "offset by X" approach can't be applied -->
+ <parameter>
+<null/>
+</parameter>
+ </constructor>
+ </bean>
+
+ <!-- The ports-03 bindings are obtained by taking ports-default and adding 300 to each port value -->
+ <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>300</parameter>
+ <!-- Set of bindings to which the "offset by X" approach can't be applied -->
+ <parameter>
+<null/>
+</parameter>
+ </constructor>
+ </bean>
+
+ <!-- Base binding metadata that ServiceBindingStore uses to create bindings for each set -->
+ <bean name="StandardBindings" class="java.util.HashSet">
+ <constructor>
+ <parameter class="java.util.Collection">
+ <set elementClass="org.jboss.services.binding.ServiceBindingMetadata">
+ <!-- ********************* conf/jboss-service.xml ****************** -->
+
+ <!-- Naming Service -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=Naming</property>
+ <property name="bindingName">Port</property>
+ <property name="port">1099</property>
+ <property name="description">The listening socket for the Naming service</property>
+ </bean>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=Naming</property>
+ <property name="bindingName">RmiPort</property>
+ <property name="port">1098</property>
+ <property name="description">Socket Naming service uses to receive RMI requests from client proxies</property>
+ </bean>
+
+ <!-- Remote classloading service -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=WebService</property>
+ <property name="port">8083</property>
+ <property name="description">Socket for dynamic class and resource loading</property>
+ </bean>
+
+ <!-- Remoting Connector -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">UnifiedInvokerConnector</property>
+ <property name="port">4446</property>
+ <property name="description">Socket for JBoss Remoting Connector used by UnifiedInvoker</property>
+ </bean>
+
+ <!-- Used to create a multihome Remoting server. See -->
+ <!-- deploy/remoting-jboss-beans.xml for more details. -->
+ <!--bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">UnifiedInvokerConnector:bindingHome1</property>
+ <parameter>192.168.2.2</property>
+ <property name="port">7777</property>
+ <property name="description">Socket for JBoss Remoting Connector used by UnifiedInvoker on a multihome server</property>
+ </bean-->
+
+ <!-- Used to create a multihome Remoting server. See -->
+ <!-- deploy/remoting-jboss-beans.xml for more details. -->
+ <!--bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">UnifiedInvokerConnector:bindingHome2</property>
+ <parameter>10.11.12.238</property>
+ <property name="port">8888</property>
+ <property name="description">Socket for JBoss Remoting Connector used by UnifiedInvoker on a multihome server</property>
+ </bean-->
+
+ <!-- ********************* deploy/legacy-invokers-service.xml ****************** -->
+
+ <!-- RMI/JRMP invoker -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=invoker,type=jrmp</property>
+ <property name="port">4444</property>
+ <property name="description">Socket for the legacy RMI/JRMP invoker</property>
+ </bean>
+
+ <!-- Pooled invoker -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=invoker,type=pooled</property>
+ <property name="port">4445</property>
+ <property name="description">Socket for the legacy Pooled invoker</property>
+ </bean>
+
+ <!-- ********************* deploy/cluster/hajndi-service.xml ****************** -->
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=HAJNDI</property>
+ <property name="bindingName">Port</property>
+ <property name="port">1100</property>
+ <property name="description">The listening socket for the HA-JNDI service</property>
+ </bean>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=HAJNDI</property>
+ <property name="bindingName">RmiPort</property>
+ <property name="port">1101</property>
+ <property name="description">Socket HA-JNDI service uses to receive RMI requests from client proxies</property>
+ </bean>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=HAJNDI</property>
+ <property name="bindingName">AutoDiscovery</property>
+ <property name="hostName">${jboss.partition.udpGroup:230.0.0.4}</property>
+ <property name="port">1102</property>
+ <property name="description">Multicast socket on which HA-JNDI listens for auto-discovery requests from clients</property>
+ <!-- This address should not be changed between different
+ binding sets; all nodes need to listen on the same
+ multicast address -->
+ <property name="fixedHostName">true</property>
+ <!-- This port should not be changed between different
+ binding sets; all nodes need to listen on the same port -->
+ <property name="fixedPort">true</property>
+ </bean>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=HAJNDI</property>
+ <property name="bindingName">AutoDiscoveryInterface</property>
+ <property name="hostName">${jboss.bind.address}</property>
+ <property name="description">Interface for multicast socket on which HA-JNDI listens for auto-discovery requests from clients</property>
+ </bean>
+
+ <!-- ********************* deploy/cluster/ha-legacy-service.xml ****************** -->
+
+ <!-- HA RMI/JRMP invoker -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=invoker,type=jrmpha</property>
+ <property name="port">4447</property>
+ <property name="description">Socket for high availability version of the legacy RMI/JRMP invoker</property>
+ </bean>
+
+ <!-- HA Pooled invoker -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=invoker,type=pooledha</property>
+ <property name="port">4448</property>
+ <property name="description">Socket for high availability version of the legacy Pooled invoker</property>
+ </bean>
+
+ <!-- ********************* deploy/iiop-service.xml ****************** -->
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=CorbaORB</property>
+ <property name="port">3528</property>
+ <property name="description">IIOP socket for the Corba ORB</property>
+ </bean>
+
+ <!-- ********************* deploy/snmp-adaptor.sar **************** -->
+
+ <!-- Trap receiver that acts as an SNMP Manager -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.jmx:name=SnmpAgent,service=trapd,type=logger</property>
+ <property name="port">1162</property>
+ <property name="description">Socket for the SNMP trap receiver</property>
+ </bean>
+
+ <!-- The SNMP adaptor MBean -->
+ <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="description">Socket for the SNMP adaptor MBean</property>
+ </bean>
+
+ <!-- ********************* deploy/jmx-remoting.sar **************** -->
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.remoting:service=JMXConnectorServer,protocol=rmi</property>
+ <property name="port">1090</property>
+ <property name="description">RMI/JRMP socket for connecting to the JMX MBeanServer</property>
+ </bean>
+
+ <!-- ********************* deploy/ejb3-connectors-service.xml **************** -->
+
+ <!-- EJB3 wants to have the service create its own ServiceBinding object
+ dynamically. See the value-factory usage in deploy/ejb3-connectors-service.xml -->
+
+
+ <!-- ********************* deploy/jbossweb.sar **************** -->
+ <!-- ********************* deploy/httpha-invoker.sar **************** -->
+
+ <!--
+ JBoss Web server.xml configuration.
+
+ Same binding config can be used by the following services, or really
+ anything else that needs to point to the JBoss Web HTTP connector
+ but doesn't need an XSL Transform
+
+ jboss:service=invoker,type=http
+ jboss:service=invoker,type=http,target=Naming
+ jboss:service=invoker,type=http,target=Naming,readonly=true
+ jboss:service=invoker,type=httpHA
+ jboss:service=invoker,type=http,target=HAJNDI
+ jboss.ws:service=ServiceEndpointManager
+ -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.web:service=WebServer</property>
+ <property name="port">8080</property>
+ <property name="description">JBoss Web HTTP connector socket; also drives the values for the HTTPS and AJP sockets</property>
+
+ <!--
+ Inject a XSLT transform configuration (see below) that describes
+ how to transform server.xml
+ If the binding value request doesn't require an XSL Transform, this config
+ will be ignored.
+ -->
+ <property name="serviceBindingValueSourceConfig">
+<inject bean="JBossWebConnectorXSLTConfig"/>
+</property>
+ </bean>
+
+ <!-- For services like those listed above that need to know the
+ port of the HTTPS connector -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.web:service=WebServer</property>
+ <property name="bindingName">HttpsConnector</property>
+ <property name="port">8443</property>
+ <property name="description">JBoss Web HTTPS connector socket</property>
+ </bean>
+
+ <!-- ********************* deploy/messaging/remoting-bisocket-service.xml ********************** -->
+
+ <!-- Standard JBM bisocket connector -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.messaging:service=Connector,transport=bisocket</property>
+ <property name="port">4457</property>
+ <property name="description">Socket for JBoss Messaging 1.x</property>
+ </bean>
+
+ <!-- ********************* JBoss Messaging 2 **************** -->
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">JBM2</property>
+ <property name="bindingName">netty-port</property>
+ <property name="port">5445</property>
+ <property name="description">Socket for JBoss Messaging 2.x</property>
+ </bean>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">JBM2</property>
+ <property name="bindingName">netty-ssl-port</property>
+ <property name="port">5446</property>
+ <property name="description">SSL socket for JBoss Messaging 2.x</property>
+ </bean>
+
+ <!-- ********************* deploy/transaction-jboss-beans.xml ********************** -->
+
+ <!-- JBossTS Recovery Manager -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">TransactionManager</property>
+ <property name="bindingName">recoveryManager</property>
+ <property name="port">4712</property>
+ <property name="description">Socket for JBossTS Recovery Manager</property>
+ </bean>
+
+ <!-- JBossTS Transaction Status Manager -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">TransactionManager</property>
+ <property name="bindingName">transactionStatusManager</property>
+ <property name="port">4713</property>
+ <property name="description">Socket for JBossTS Transaction Status Manager</property>
+ </bean>
+
+ <!-- JBossTS SocketProcessId. The address part is ignored,
+ it will always use localhost/127.0.0.1. -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">TransactionManager</property>
+ <property name="bindingName">socketProcessId</property>
+ <property name="port">4714</property>
+ <property name="description">Socket used to provide unique process id for JBossTS. The address configuration is ignored; will always use localhost/127.0.0.1</property>
+ </bean>
+
+ <!-- ********************* deploy/hsqldb-ds.xml **************** -->
+
+ <!-- Commented out as tcp/ip access to Hypersonic is not enabled by default -->
+ <!--
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=Hypersonic</property>
+ <property name="port">1701</property>
+ <property name="description">TCP/IP socket for remote connection to Hypersonic database</property>
+ </bean>
+ -->
+
+ <!-- ********************* JBoss MQ **************** -->
+
+ <!-- Commented out as JBoss MQ is not installed by default
+ If you uncomment this and also use jboss.mq:service=InvocationLayer,type=HTTP,
+ configure the http invocation layer using the jboss.web:service=WebServer binding above
+ -->
+ <!--
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.mq:service=InvocationLayer,type=UIL2</property>
+ <property name="port">8093</property>
+ <property name="description">UIL2 socket for JBossMQ</property>
+ </bean>
+ -->
+
+ </set>
+ </parameter>
+ </constructor>
+ </bean>
+
+ <!-- Conversion of selected bindings into system properties -->
+ <bean name="SystemPropertyBinder" class="org.jboss.services.binding.SystemPropertyBinder">
+
+ <constructor>
+ <parameter>
+ <set>
+ <!-- JBM's remoting connector -->
+ <bean class="org.jboss.services.binding.SystemPropertyBinding">
+ <constructor>
+ <parameter>jboss.messaging.connector.bisocket.port</parameter>
+ <parameter class="int">
+ <value-factory bean="ServiceBindingManager" method="getIntBinding" parameter="jboss.messaging:service=Connector,transport=bisocket"/>
+ </parameter>
+ </constructor>
+ </bean>
+ <!-- JBM2 netty connector -->
+ <bean class="org.jboss.services.binding.SystemPropertyBinding">
+ <constructor>
+ <parameter>jbm.remoting.netty.port</parameter>
+ <parameter class="int">
+ <value-factory bean="ServiceBindingManager" method="getIntBinding">
+ <parameter>JBM2</parameter>
+ <parameter>netty-port</parameter>
+ </value-factory>
+ </parameter>
+ </constructor>
+ </bean>
+ <!-- JBM2 netty ssl connector -->
+ <bean class="org.jboss.services.binding.SystemPropertyBinding">
+ <constructor>
+ <parameter>jbm.remoting.netty.ssl.port</parameter>
+ <parameter class="int">
+ <value-factory bean="ServiceBindingManager" method="getIntBinding">
+ <parameter>JBM2</parameter>
+ <parameter>netty-ssl-port</parameter>
+ </value-factory>
+ </parameter>
+ </constructor>
+ </bean>
+ </set>
+ </parameter>
+ </constructor>
+
+ </bean>
+
+ <!-- XSL Transform to apply to server.xml -->
+ <bean name="JBossWebConnectorXSLTConfig" class="org.jboss.services.binding.impl.XSLTServiceBindingValueSourceConfig">
+
+ <constructor>
+ <parameter>
+ <xsl:stylesheet
+ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+
+ <xsl:output method="xml" />
+ <xsl:param name="port"/>
+
+ <xsl:variable name="portAJP" select="$port - 71"/>
+ <xsl:variable name="portHttps" select="$port + 363"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match = "Connector">
+ <Connector>
+ <xsl:for-each select="@*">
+ <xsl:choose>
+ <xsl:when test="(name() = 'port' and . = '8080')">
+ <xsl:attribute name="port"><xsl:value-of select="$port" /></xsl:attribute>
+ </xsl:when>
+ <xsl:when test="(name() = 'port' and . = '8009')">
+ <xsl:attribute name="port"><xsl:value-of select="$portAJP" /></xsl:attribute>
+ </xsl:when>
+ <xsl:when test="(name() = 'redirectPort')">
+ <xsl:attribute name="redirectPort"><xsl:value-of select="$portHttps" /></xsl:attribute>
+ </xsl:when>
+ <xsl:when test="(name() = 'port' and . = '8443')">
+ <xsl:attribute name="port"><xsl:value-of select="$portHttps" /></xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ <xsl:apply-templates/>
+ </Connector>
+ </xsl:template>
+
+ <xsl:template match="*|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet>
+
+ </parameter>
+ </constructor>
+ </bean>
+
+</deployment>
Added: labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/bindings-jboss-beans-as-5-1-0-GA.xslt
===================================================================
--- labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/bindings-jboss-beans-as-5-1-0-GA.xslt (rev 0)
+++ labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/bindings-jboss-beans-as-5-1-0-GA.xslt 2009-08-13 08:58:57 UTC (rev 28925)
@@ -0,0 +1,244 @@
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns="urn:jboss:bean-deployer:2.0"
+ xmlns:sbm="urn:jboss:bean-deployer:2.0"
+ exclude-result-prefixes="sbm">
+ <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
+
+
+ <xsl:template match="/sbm:deployment">
+ <xsl:call-template name="add-xslt-beans">
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template match="/sbm:deployment/sbm:bean[@name='SystemPropertyBinder']/sbm:constructor/sbm:parameter/sbm:set">
+ <xsl:call-template name="add-system-property">
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template match="/sbm:deployment/sbm:bean/sbm:constructor/sbm:parameter/sbm:set[@elementClass='org.jboss.services.binding.ServiceBindingMetadata']">
+ <xsl:call-template name="add-to-standard-bindings">
+ <xsl:with-param name="jndiPort" select="1099"/>
+ <xsl:with-param name="webPort" select="8080"/>
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template name="add-xslt-beans">
+ <xsl:copy xml:space="preserve"><xsl:apply-templates select="@*|node()"/>
+ <xsl:text>
+ </xsl:text>
+ <xsl:comment>ESB XSL Transform to apply to jbossesb-properties.xml</xsl:comment><xsl:text>
+ </xsl:text>
+ <bean name="EsbPropertyServiceXSLTConfig" class="org.jboss.services.binding.impl.XSLTServiceBindingValueSourceConfig"><xsl:text>
+ </xsl:text>
+ <constructor><xsl:text>
+ </xsl:text>
+ <parameter>
+ <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+ <xsl:output method="xml"/>
+ <xsl:param name="port"/>
+ <xsl:param name="esbHost"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="property[@name='org.jboss.soa.esb.jndi.server.url']">
+ <xsl:element name="property">
+ <xsl:attribute name="name">org.jboss.soa.esb.jndi.server.url</xsl:attribute>
+ <xsl:attribute name="value"><xsl:value-of select='$esbHost'/>:<xsl:value-of select='$port'/></xsl:attribute>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="*|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet><xsl:text>
+ </xsl:text>
+ </parameter><xsl:text>
+ </xsl:text>
+ <parameter><xsl:text>
+ </xsl:text>
+ <map keyClass="java.lang.String" valueClass="java.lang.String"><xsl:text>
+ </xsl:text>
+ <entry><xsl:text>
+ </xsl:text>
+ <key>esbHost</key><xsl:text>
+ </xsl:text>
+ <value>${jboss.bind.address}</value><xsl:text>
+ </xsl:text>
+ </entry><xsl:text>
+ </xsl:text>
+ </map><xsl:text>
+ </xsl:text>
+ </parameter><xsl:text>
+ </xsl:text>
+ </constructor><xsl:text>
+ </xsl:text>
+ </bean><xsl:text>
+
+ </xsl:text>
+
+ <xsl:comment> XSL Transform to apply to juddi-esb.xml </xsl:comment><xsl:text>
+ </xsl:text>
+ <bean name="EsbJuddiRMIXSLTConfig" class="org.jboss.services.binding.impl.XSLTServiceBindingValueSourceConfig"><xsl:text>
+ </xsl:text>
+ <constructor><xsl:text>
+ </xsl:text>
+ <parameter>
+ <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+
+ <xsl:output method="xml"/>
+ <xsl:param name="esbHost"/>
+ <xsl:param name="port"/>
+ <xsl:param name="webPort"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='java.naming.provider.url']">
+ <entry key="java.naming.provider.url">jnp://<xsl:value-of select='$esbHost'/>:<xsl:value-of select='$port'/></entry>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='juddi.discoveryURL']">
+ <entry key="juddi.discoveryURL">http://<xsl:value-of select="$esbHost"/>:<xsl:value-of select="$webPort"/>/juddi/uddiget.jsp?</entry>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='juddi.proxy.adminURL']">
+ <entry key="juddi.proxy.adminURL">http://<xsl:value-of select="$esbHost"/>:<xsl:value-of select="$webPort"/>/juddi/admin</entry>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='juddi.proxy.inquiryURL']">
+ <entry key="juddi.proxy.inquiryURL">http://<xsl:value-of select="$esbHost"/>:<xsl:value-of select="$webPort"/>/juddi/inquiry</entry>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='juddi.proxy.publishURL']">
+ <entry key="juddi.proxy.publishURL">http://<xsl:value-of select="$esbHost"/>:<xsl:value-of select="$webPort"/>/juddi/publish</entry>
+ </xsl:template>
+
+ <xsl:template match="*|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet><xsl:text>
+ </xsl:text>
+ </parameter><xsl:text>
+ </xsl:text>
+ <parameter><xsl:text>
+ </xsl:text>
+ <map keyClass="java.lang.String" valueClass="java.lang.String"><xsl:text>
+ </xsl:text>
+ <entry><xsl:text>
+ </xsl:text>
+ <key>esbHost</key><xsl:text>
+ </xsl:text>
+ <value>${jboss.bind.address}</value><xsl:text>
+ </xsl:text>
+ </entry><xsl:text>
+ </xsl:text>
+ <entry><xsl:text>
+ </xsl:text>
+ <key>webPort</key><xsl:text>
+ </xsl:text>
+ <value>${org.jboss.esb.web.port}</value><xsl:text>
+ </xsl:text>
+ </entry><xsl:text>
+ </xsl:text>
+ </map><xsl:text>
+ </xsl:text>
+ </parameter><xsl:text>
+ </xsl:text>
+ </constructor><xsl:text>
+ </xsl:text>
+ </bean><xsl:text>
+
+</xsl:text>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template name="add-to-standard-bindings">
+ <xsl:copy xml:space="preserve"><xsl:apply-templates select="@*|node()"/>
+ <xsl:text>
+ </xsl:text>
+ <xsl:comment> ************ ESB Standard Bindings configuration ************ </xsl:comment><xsl:text>
+ </xsl:text>
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata"><xsl:text>
+ </xsl:text>
+ <property name="serviceName">EsbPropertyService</property><xsl:text>
+ </xsl:text>
+ <property name="port">1099</property><xsl:text>
+ </xsl:text>
+ <property name="description">Will process jbossesb-properties using xslt to support substituion of configuration properties.</property><xsl:text>
+ </xsl:text>
+ <property name="serviceBindingValueSourceConfig"><xsl:text>
+ </xsl:text>
+ <inject bean="EsbPropertyServiceXSLTConfig"/><xsl:text>
+ </xsl:text>
+ </property><xsl:text>
+ </xsl:text>
+ </bean><xsl:text>
+
+ </xsl:text>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata"><xsl:text>
+ </xsl:text>
+ <property name="serviceName">EsbJuddiRMIPropertyService</property><xsl:text>
+ </xsl:text>
+ <property name="port">1099</property><xsl:text>
+ </xsl:text>
+ <property name="description">Will process juddi-esb.xml using xslt to support substituion of configuration properties .</property><xsl:text>
+ </xsl:text>
+ <property name="serviceBindingValueSourceConfig"><xsl:text>
+ </xsl:text>
+ <inject bean="EsbJuddiRMIXSLTConfig"/><xsl:text>
+ </xsl:text>
+ </property><xsl:text>
+ </xsl:text>
+ </bean><xsl:text>
+
+ </xsl:text>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template name="add-system-property">
+ <xsl:copy xml:space="preserve"><xsl:apply-templates select="@*|node()"/>
+ <xsl:text>
+ </xsl:text>
+ <xsl:comment>************ ESB System Properties ************ </xsl:comment><xsl:text>
+ </xsl:text>
+ <bean class="org.jboss.services.binding.SystemPropertyBinding"><xsl:text>
+ </xsl:text>
+ <constructor><xsl:text>
+ </xsl:text>
+ <parameter>org.jboss.esb.web.port</parameter><xsl:text>
+ </xsl:text>
+ <parameter class="int"><xsl:text>
+ </xsl:text>
+ <value-factory bean="ServiceBindingManager" method="getIntBinding"><xsl:text>
+ </xsl:text>
+ <parameter>jboss.web:service=WebServer</parameter><xsl:text>
+ </xsl:text>
+ </value-factory><xsl:text>
+ </xsl:text>
+ </parameter><xsl:text>
+ </xsl:text>
+ </constructor><xsl:text>
+ </xsl:text>
+ </bean><xsl:text>
+
+ </xsl:text>
+ </xsl:copy>
+ </xsl:template>
+
+
+ <xsl:template name="identity" match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/valid-bindings-jboss-beans-as-5-1-0-GA.xml
===================================================================
--- labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/valid-bindings-jboss-beans-as-5-1-0-GA.xml (rev 0)
+++ labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/util/valid-bindings-jboss-beans-as-5-1-0-GA.xml 2009-08-13 08:58:57 UTC (rev 28925)
@@ -0,0 +1,691 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+ <!-- The actual SBM from which services obtain binding information -->
+ <bean name="ServiceBindingManager" class="org.jboss.services.binding.ServiceBindingManager">
+
+ <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.system:service=ServiceBindingManager", exposedInterface=org.jboss.services.binding.ServiceBindingManagerMBean.class, registerDirectly=true)</annotation>
+
+ <!-- Here we use the ServiceBindingManagementObject as a factory to create the SBM -->
+ <constructor factoryMethod="getServiceBindingManager">
+ <factory bean="ServiceBindingManagementObject"/>
+ </constructor>
+
+ </bean>
+
+ <!-- Provides management tools with a ProfileService ManagementView
+ interface to the SBM and its components -->
+ <bean name="ServiceBindingManagementObject" class="org.jboss.services.binding.managed.ServiceBindingManagementObject">
+
+ <constructor>
+ <!-- The name of the set of bindings to use for this server -->
+ <parameter>${jboss.service.binding.set:ports-02}</parameter>
+
+ <!-- The binding sets -->
+ <parameter>
+ <set>
+ <inject bean="PortsDefaultBindings"/>
+ <inject bean="Ports01Bindings"/>
+ <inject bean="Ports02Bindings"/>
+ <inject bean="Ports03Bindings"/>
+ </set>
+ </parameter>
+
+ <!-- Base binding metadata that is used to create bindings for each set -->
+ <parameter>
+<inject bean="StandardBindings"/>
+</parameter>
+
+ </constructor>
+ </bean>
+
+
+ <!-- The ports-default bindings are obtained by taking the base bindings and adding 0 to each port value -->
+ <bean name="PortsDefaultBindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
+ <constructor>
+ <!-- The name of the set -->
+ <parameter>ports-default</parameter>
+ <!-- Default host name -->
+ <parameter>${jboss.bind.address}</parameter>
+ <!-- The port offset -->
+ <parameter>0</parameter>
+ <!-- Set of bindings to which the "offset by X" approach can't be applied -->
+ <parameter>
+<null/>
+</parameter>
+ </constructor>
+ </bean>
+
+ <!-- The ports-01 bindings are obtained by taking the base bindings and adding 100 to each port value -->
+ <bean name="Ports01Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
+ <constructor>
+ <!-- The name of the set -->
+ <parameter>ports-01</parameter>
+ <!-- Default host name -->
+ <parameter>${jboss.bind.address}</parameter>
+ <!-- The port offset -->
+ <parameter>100</parameter>
+ <!-- Set of bindings to which the "offset by X" approach can't be applied -->
+ <parameter>
+<null/>
+</parameter>
+ </constructor>
+ </bean>
+
+ <!-- The ports-02 bindings are obtained by taking ports-default and adding 200 to each port value -->
+ <bean name="Ports02Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
+ <constructor>
+ <!-- The name of the set -->
+ <parameter>ports-02</parameter>
+ <!-- Default host name -->
+ <parameter>${jboss.bind.address}</parameter>
+ <!-- The port offset -->
+ <parameter>200</parameter>
+ <!-- Set of bindings to which the "offset by X" approach can't be applied -->
+ <parameter>
+<null/>
+</parameter>
+ </constructor>
+ </bean>
+
+ <!-- The ports-03 bindings are obtained by taking ports-default and adding 300 to each port value -->
+ <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>300</parameter>
+ <!-- Set of bindings to which the "offset by X" approach can't be applied -->
+ <parameter>
+<null/>
+</parameter>
+ </constructor>
+ </bean>
+
+ <!-- Base binding metadata that ServiceBindingStore uses to create bindings for each set -->
+ <bean name="StandardBindings" class="java.util.HashSet">
+ <constructor>
+ <parameter class="java.util.Collection">
+ <set elementClass="org.jboss.services.binding.ServiceBindingMetadata">
+ <!-- ********************* conf/jboss-service.xml ****************** -->
+
+ <!-- Naming Service -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=Naming</property>
+ <property name="bindingName">Port</property>
+ <property name="port">1099</property>
+ <property name="description">The listening socket for the Naming service</property>
+ </bean>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=Naming</property>
+ <property name="bindingName">RmiPort</property>
+ <property name="port">1098</property>
+ <property name="description">Socket Naming service uses to receive RMI requests from client proxies</property>
+ </bean>
+
+ <!-- Remote classloading service -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=WebService</property>
+ <property name="port">8083</property>
+ <property name="description">Socket for dynamic class and resource loading</property>
+ </bean>
+
+ <!-- Remoting Connector -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">UnifiedInvokerConnector</property>
+ <property name="port">4446</property>
+ <property name="description">Socket for JBoss Remoting Connector used by UnifiedInvoker</property>
+ </bean>
+
+ <!-- Used to create a multihome Remoting server. See -->
+ <!-- deploy/remoting-jboss-beans.xml for more details. -->
+ <!--bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">UnifiedInvokerConnector:bindingHome1</property>
+ <parameter>192.168.2.2</property>
+ <property name="port">7777</property>
+ <property name="description">Socket for JBoss Remoting Connector used by UnifiedInvoker on a multihome server</property>
+ </bean-->
+
+ <!-- Used to create a multihome Remoting server. See -->
+ <!-- deploy/remoting-jboss-beans.xml for more details. -->
+ <!--bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">UnifiedInvokerConnector:bindingHome2</property>
+ <parameter>10.11.12.238</property>
+ <property name="port">8888</property>
+ <property name="description">Socket for JBoss Remoting Connector used by UnifiedInvoker on a multihome server</property>
+ </bean-->
+
+ <!-- ********************* deploy/legacy-invokers-service.xml ****************** -->
+
+ <!-- RMI/JRMP invoker -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=invoker,type=jrmp</property>
+ <property name="port">4444</property>
+ <property name="description">Socket for the legacy RMI/JRMP invoker</property>
+ </bean>
+
+ <!-- Pooled invoker -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=invoker,type=pooled</property>
+ <property name="port">4445</property>
+ <property name="description">Socket for the legacy Pooled invoker</property>
+ </bean>
+
+ <!-- ********************* deploy/cluster/hajndi-service.xml ****************** -->
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=HAJNDI</property>
+ <property name="bindingName">Port</property>
+ <property name="port">1100</property>
+ <property name="description">The listening socket for the HA-JNDI service</property>
+ </bean>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=HAJNDI</property>
+ <property name="bindingName">RmiPort</property>
+ <property name="port">1101</property>
+ <property name="description">Socket HA-JNDI service uses to receive RMI requests from client proxies</property>
+ </bean>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=HAJNDI</property>
+ <property name="bindingName">AutoDiscovery</property>
+ <property name="hostName">${jboss.partition.udpGroup:230.0.0.4}</property>
+ <property name="port">1102</property>
+ <property name="description">Multicast socket on which HA-JNDI listens for auto-discovery requests from clients</property>
+ <!-- This address should not be changed between different
+ binding sets; all nodes need to listen on the same
+ multicast address -->
+ <property name="fixedHostName">true</property>
+ <!-- This port should not be changed between different
+ binding sets; all nodes need to listen on the same port -->
+ <property name="fixedPort">true</property>
+ </bean>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=HAJNDI</property>
+ <property name="bindingName">AutoDiscoveryInterface</property>
+ <property name="hostName">${jboss.bind.address}</property>
+ <property name="description">Interface for multicast socket on which HA-JNDI listens for auto-discovery requests from clients</property>
+ </bean>
+
+ <!-- ********************* deploy/cluster/ha-legacy-service.xml ****************** -->
+
+ <!-- HA RMI/JRMP invoker -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=invoker,type=jrmpha</property>
+ <property name="port">4447</property>
+ <property name="description">Socket for high availability version of the legacy RMI/JRMP invoker</property>
+ </bean>
+
+ <!-- HA Pooled invoker -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=invoker,type=pooledha</property>
+ <property name="port">4448</property>
+ <property name="description">Socket for high availability version of the legacy Pooled invoker</property>
+ </bean>
+
+ <!-- ********************* deploy/iiop-service.xml ****************** -->
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=CorbaORB</property>
+ <property name="port">3528</property>
+ <property name="description">IIOP socket for the Corba ORB</property>
+ </bean>
+
+ <!-- ********************* deploy/snmp-adaptor.sar **************** -->
+
+ <!-- Trap receiver that acts as an SNMP Manager -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.jmx:name=SnmpAgent,service=trapd,type=logger</property>
+ <property name="port">1162</property>
+ <property name="description">Socket for the SNMP trap receiver</property>
+ </bean>
+
+ <!-- The SNMP adaptor MBean -->
+ <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="description">Socket for the SNMP adaptor MBean</property>
+ </bean>
+
+ <!-- ********************* deploy/jmx-remoting.sar **************** -->
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.remoting:service=JMXConnectorServer,protocol=rmi</property>
+ <property name="port">1090</property>
+ <property name="description">RMI/JRMP socket for connecting to the JMX MBeanServer</property>
+ </bean>
+
+ <!-- ********************* deploy/ejb3-connectors-service.xml **************** -->
+
+ <!-- EJB3 wants to have the service create its own ServiceBinding object
+ dynamically. See the value-factory usage in deploy/ejb3-connectors-service.xml -->
+
+
+ <!-- ********************* deploy/jbossweb.sar **************** -->
+ <!-- ********************* deploy/httpha-invoker.sar **************** -->
+
+ <!--
+ JBoss Web server.xml configuration.
+
+ Same binding config can be used by the following services, or really
+ anything else that needs to point to the JBoss Web HTTP connector
+ but doesn't need an XSL Transform
+
+ jboss:service=invoker,type=http
+ jboss:service=invoker,type=http,target=Naming
+ jboss:service=invoker,type=http,target=Naming,readonly=true
+ jboss:service=invoker,type=httpHA
+ jboss:service=invoker,type=http,target=HAJNDI
+ jboss.ws:service=ServiceEndpointManager
+ -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.web:service=WebServer</property>
+ <property name="port">8080</property>
+ <property name="description">JBoss Web HTTP connector socket; also drives the values for the HTTPS and AJP sockets</property>
+
+ <!--
+ Inject a XSLT transform configuration (see below) that describes
+ how to transform server.xml
+ If the binding value request doesn't require an XSL Transform, this config
+ will be ignored.
+ -->
+ <property name="serviceBindingValueSourceConfig">
+<inject bean="JBossWebConnectorXSLTConfig"/>
+</property>
+ </bean>
+
+ <!-- For services like those listed above that need to know the
+ port of the HTTPS connector -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.web:service=WebServer</property>
+ <property name="bindingName">HttpsConnector</property>
+ <property name="port">8443</property>
+ <property name="description">JBoss Web HTTPS connector socket</property>
+ </bean>
+
+ <!-- ********************* deploy/messaging/remoting-bisocket-service.xml ********************** -->
+
+ <!-- Standard JBM bisocket connector -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.messaging:service=Connector,transport=bisocket</property>
+ <property name="port">4457</property>
+ <property name="description">Socket for JBoss Messaging 1.x</property>
+ </bean>
+
+ <!-- ********************* JBoss Messaging 2 **************** -->
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">JBM2</property>
+ <property name="bindingName">netty-port</property>
+ <property name="port">5445</property>
+ <property name="description">Socket for JBoss Messaging 2.x</property>
+ </bean>
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">JBM2</property>
+ <property name="bindingName">netty-ssl-port</property>
+ <property name="port">5446</property>
+ <property name="description">SSL socket for JBoss Messaging 2.x</property>
+ </bean>
+
+ <!-- ********************* deploy/transaction-jboss-beans.xml ********************** -->
+
+ <!-- JBossTS Recovery Manager -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">TransactionManager</property>
+ <property name="bindingName">recoveryManager</property>
+ <property name="port">4712</property>
+ <property name="description">Socket for JBossTS Recovery Manager</property>
+ </bean>
+
+ <!-- JBossTS Transaction Status Manager -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">TransactionManager</property>
+ <property name="bindingName">transactionStatusManager</property>
+ <property name="port">4713</property>
+ <property name="description">Socket for JBossTS Transaction Status Manager</property>
+ </bean>
+
+ <!-- JBossTS SocketProcessId. The address part is ignored,
+ it will always use localhost/127.0.0.1. -->
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">TransactionManager</property>
+ <property name="bindingName">socketProcessId</property>
+ <property name="port">4714</property>
+ <property name="description">Socket used to provide unique process id for JBossTS. The address configuration is ignored; will always use localhost/127.0.0.1</property>
+ </bean>
+
+ <!-- ********************* deploy/hsqldb-ds.xml **************** -->
+
+ <!-- Commented out as tcp/ip access to Hypersonic is not enabled by default -->
+ <!--
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss:service=Hypersonic</property>
+ <property name="port">1701</property>
+ <property name="description">TCP/IP socket for remote connection to Hypersonic database</property>
+ </bean>
+ -->
+
+ <!-- ********************* JBoss MQ **************** -->
+
+ <!-- Commented out as JBoss MQ is not installed by default
+ If you uncomment this and also use jboss.mq:service=InvocationLayer,type=HTTP,
+ configure the http invocation layer using the jboss.web:service=WebServer binding above
+ -->
+ <!--
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+ <property name="serviceName">jboss.mq:service=InvocationLayer,type=UIL2</property>
+ <property name="port">8093</property>
+ <property name="description">UIL2 socket for JBossMQ</property>
+ </bean>
+ -->
+
+
+
+
+ <!-- ************ ESB Standard Bindings configuration ************ -->
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+
+ <property name="serviceName">EsbPropertyService</property>
+
+ <property name="port">1099</property>
+
+ <property name="description">Will process jbossesb-properties using xslt to support substituion of configuration properties.</property>
+
+ <property name="serviceBindingValueSourceConfig">
+
+ <inject bean="EsbPropertyServiceXSLTConfig"/>
+
+ </property>
+
+ </bean>
+
+
+
+ <bean class="org.jboss.services.binding.ServiceBindingMetadata">
+
+ <property name="serviceName">EsbJuddiRMIPropertyService</property>
+
+ <property name="port">1099</property>
+
+ <property name="description">Will process juddi-esb.xml using xslt to support substituion of configuration properties .</property>
+
+ <property name="serviceBindingValueSourceConfig">
+
+ <inject bean="EsbJuddiRMIXSLTConfig"/>
+
+ </property>
+
+ </bean>
+
+
+ </set>
+ </parameter>
+ </constructor>
+ </bean>
+
+ <!-- Conversion of selected bindings into system properties -->
+ <bean name="SystemPropertyBinder" class="org.jboss.services.binding.SystemPropertyBinder">
+
+ <constructor>
+ <parameter>
+ <set>
+ <!-- JBM's remoting connector -->
+ <bean class="org.jboss.services.binding.SystemPropertyBinding">
+ <constructor>
+ <parameter>jboss.messaging.connector.bisocket.port</parameter>
+ <parameter class="int">
+ <value-factory bean="ServiceBindingManager" method="getIntBinding" parameter="jboss.messaging:service=Connector,transport=bisocket"/>
+ </parameter>
+ </constructor>
+ </bean>
+ <!-- JBM2 netty connector -->
+ <bean class="org.jboss.services.binding.SystemPropertyBinding">
+ <constructor>
+ <parameter>jbm.remoting.netty.port</parameter>
+ <parameter class="int">
+ <value-factory bean="ServiceBindingManager" method="getIntBinding">
+ <parameter>JBM2</parameter>
+ <parameter>netty-port</parameter>
+ </value-factory>
+ </parameter>
+ </constructor>
+ </bean>
+ <!-- JBM2 netty ssl connector -->
+ <bean class="org.jboss.services.binding.SystemPropertyBinding">
+ <constructor>
+ <parameter>jbm.remoting.netty.ssl.port</parameter>
+ <parameter class="int">
+ <value-factory bean="ServiceBindingManager" method="getIntBinding">
+ <parameter>JBM2</parameter>
+ <parameter>netty-ssl-port</parameter>
+ </value-factory>
+ </parameter>
+ </constructor>
+ </bean>
+
+
+
+ <!--************ ESB System Properties ************ -->
+
+ <bean class="org.jboss.services.binding.SystemPropertyBinding">
+
+ <constructor>
+
+ <parameter>org.jboss.esb.web.port</parameter>
+
+ <parameter class="int">
+
+ <value-factory method="getIntBinding" bean="ServiceBindingManager">
+
+ <parameter>jboss.web:service=WebServer</parameter>
+
+ </value-factory>
+
+ </parameter>
+
+ </constructor>
+
+ </bean>
+
+
+ </set>
+ </parameter>
+ </constructor>
+
+ </bean>
+
+ <!-- XSL Transform to apply to server.xml -->
+ <bean name="JBossWebConnectorXSLTConfig" class="org.jboss.services.binding.impl.XSLTServiceBindingValueSourceConfig">
+
+ <constructor>
+ <parameter>
+ <xsl:stylesheet
+ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+
+ <xsl:output method="xml" />
+ <xsl:param name="port"/>
+
+ <xsl:variable name="portAJP" select="$port - 71"/>
+ <xsl:variable name="portHttps" select="$port + 363"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match = "Connector">
+ <Connector>
+ <xsl:for-each select="@*">
+ <xsl:choose>
+ <xsl:when test="(name() = 'port' and . = '8080')">
+ <xsl:attribute name="port"><xsl:value-of select="$port" /></xsl:attribute>
+ </xsl:when>
+ <xsl:when test="(name() = 'port' and . = '8009')">
+ <xsl:attribute name="port"><xsl:value-of select="$portAJP" /></xsl:attribute>
+ </xsl:when>
+ <xsl:when test="(name() = 'redirectPort')">
+ <xsl:attribute name="redirectPort"><xsl:value-of select="$portHttps" /></xsl:attribute>
+ </xsl:when>
+ <xsl:when test="(name() = 'port' and . = '8443')">
+ <xsl:attribute name="port"><xsl:value-of select="$portHttps" /></xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ <xsl:apply-templates/>
+ </Connector>
+ </xsl:template>
+
+ <xsl:template match="*|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet>
+
+ </parameter>
+ </constructor>
+ </bean>
+
+
+
+
+ <!--ESB XSL Transform to apply to jbossesb-properties.xml-->
+
+ <bean class="org.jboss.services.binding.impl.XSLTServiceBindingValueSourceConfig" name="EsbPropertyServiceXSLTConfig">
+
+ <constructor>
+
+ <parameter>
+ <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+ <xsl:output method="xml"/>
+ <xsl:param name="port"/>
+ <xsl:param name="esbHost"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="property[@name='org.jboss.soa.esb.jndi.server.url']">
+ <xsl:element name="property">
+ <xsl:attribute name="name">org.jboss.soa.esb.jndi.server.url</xsl:attribute>
+ <xsl:attribute name="value"><xsl:value-of select='$esbHost'/>:<xsl:value-of select='$port'/></xsl:attribute>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="*|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet>
+
+ </parameter>
+
+ <parameter>
+
+ <map valueClass="java.lang.String" keyClass="java.lang.String">
+
+ <entry>
+
+ <key>esbHost</key>
+
+ <value>${jboss.bind.address}</value>
+
+ </entry>
+
+ </map>
+
+ </parameter>
+
+ </constructor>
+
+ </bean>
+
+
+
+ <!-- XSL Transform to apply to juddi-esb.xml -->
+
+ <bean class="org.jboss.services.binding.impl.XSLTServiceBindingValueSourceConfig" name="EsbJuddiRMIXSLTConfig">
+
+ <constructor>
+
+ <parameter>
+ <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+
+ <xsl:output method="xml"/>
+ <xsl:param name="esbHost"/>
+ <xsl:param name="port"/>
+ <xsl:param name="webPort"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='java.naming.provider.url']">
+ <entry key="java.naming.provider.url">jnp://<xsl:value-of select='$esbHost'/>:<xsl:value-of select='$port'/></entry>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='juddi.discoveryURL']">
+ <entry key="juddi.discoveryURL">http://<xsl:value-of select="$esbHost"/>:<xsl:value-of select="$webPort"/>/juddi/uddiget.jsp?</entry>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='juddi.proxy.adminURL']">
+ <entry key="juddi.proxy.adminURL">http://<xsl:value-of select="$esbHost"/>:<xsl:value-of select="$webPort"/>/juddi/admin</entry>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='juddi.proxy.inquiryURL']">
+ <entry key="juddi.proxy.inquiryURL">http://<xsl:value-of select="$esbHost"/>:<xsl:value-of select="$webPort"/>/juddi/inquiry</entry>
+ </xsl:template>
+
+ <xsl:template match="entry[@key='juddi.proxy.publishURL']">
+ <entry key="juddi.proxy.publishURL">http://<xsl:value-of select="$esbHost"/>:<xsl:value-of select="$webPort"/>/juddi/publish</entry>
+ </xsl:template>
+
+ <xsl:template match="*|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet>
+
+ </parameter>
+
+ <parameter>
+
+ <map valueClass="java.lang.String" keyClass="java.lang.String">
+
+ <entry>
+
+ <key>esbHost</key>
+
+ <value>${jboss.bind.address}</value>
+
+ </entry>
+
+ <entry>
+
+ <key>webPort</key>
+
+ <value>${org.jboss.esb.web.port}</value>
+
+ </entry>
+
+ </map>
+
+ </parameter>
+
+ </constructor>
+
+ </bean>
+
+
+ </deployment>
Modified: labs/jbossesb/trunk/product/samples/quickstarts/two_servers/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/two_servers/build.xml 2009-08-12 15:18:35 UTC (rev 28924)
+++ labs/jbossesb/trunk/product/samples/quickstarts/two_servers/build.xml 2009-08-13 08:58:57 UTC (rev 28925)
@@ -41,17 +41,6 @@
<fileset dir="${org.jboss.esb.twoservers.home}/server/${org.jboss.esb.twoservers.orig.config}" includes="**"/>
</copy>
- <copy overwrite="true" file="resources/bindings-jboss-beans.xml" todir="${org.jboss.esb.twoservers.home}/server/${org.jboss.esb.twoservers.dest.first}/conf/bindingservice.beans/META-INF">
- <filterset>
- <filter token="server.name" value="ports-01"/>
- </filterset>
- </copy>
-
- <copy overwrite="true" file="resources/bindings-jboss-beans.xml" todir="${org.jboss.esb.twoservers.home}/server/${org.jboss.esb.twoservers.dest.second}/conf/bindingservice.beans/META-INF">
- <filterset>
- <filter token="server.name" value="ports-02"/>
- </filterset>
- </copy>
</target>
<target name="setup-jbossas4" if="jbossas4">
Modified: labs/jbossesb/trunk/product/samples/quickstarts/two_servers/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/two_servers/readme.txt 2009-08-12 15:18:35 UTC (rev 28924)
+++ labs/jbossesb/trunk/product/samples/quickstarts/two_servers/readme.txt 2009-08-13 08:58:57 UTC (rev 28925)
@@ -34,6 +34,8 @@
Type 'ant setup-servers'.
(Note that this will remove both the SERVER_HOME/server/first and SERVER_HOME/server/second directories, and will make a copy of the default directory in each of these locations. This target requires Ant 1.7 or higher)
2. In Window 1, ant deploy
- 3. In Window 2, start the first application server (./run.sh -c first)
- 4. In Window 3, start the second application server (./run.sh -c second)
+ 3. In Window 2, AS 4.x: start the first application server (./run.sh -c first)
+ AS 5.x: start the first application server (./run.sh -c first -Djboss.service.binding.set=ports-01)
+ 4. In Window 3, AS 4.x: start the second application server (./run.sh -c second)
+ AS 5.x: start the second application server (./run.sh -c second -Djboss.service.binding.set=ports-02)
5. In Window 1, ant runtest
Deleted: labs/jbossesb/trunk/product/samples/quickstarts/two_servers/resources/bindings-jboss-beans.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/two_servers/resources/bindings-jboss-beans.xml 2009-08-12 15:18:35 UTC (rev 28924)
+++ labs/jbossesb/trunk/product/samples/quickstarts/two_servers/resources/bindings-jboss-beans.xml 2009-08-13 08:58:57 UTC (rev 28925)
@@ -1,491 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<deployment xmlns="urn:jboss:bean-deployer:2.0">
-
- <!-- The actual SBM from which services obtain binding information -->
- <bean name="ServiceBindingManager" class="org.jboss.services.binding.ServiceBindingManager">
-
- <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.system:service=ServiceBindingManager", exposedInterface=org.jboss.services.binding.ServiceBindingManagerMBean.class, registerDirectly=true)</annotation>
-
- <!-- Here we use the ServiceBindingManagementObject as a factory to create the SBM -->
- <constructor factoryMethod="getServiceBindingManager">
- <factory bean="ServiceBindingManagementObject"/>
- </constructor>
-
- </bean>
-
- <!-- Provides management tools with a ProfileService ManagementView
- interface to the SBM and its components -->
- <bean name="ServiceBindingManagementObject" class="org.jboss.services.binding.managed.ServiceBindingManagementObject">
-
- <constructor>
- <!-- The name of the set of bindings to use for this server -->
- <parameter>${jboss.service.binding.set:@server.name@}</parameter>
-
- <!-- The binding sets -->
- <parameter>
- <set>
- <inject bean="PortsDefaultBindings"/>
- <inject bean="Ports01Bindings"/>
- <inject bean="Ports02Bindings"/>
- <inject bean="Ports03Bindings"/>
- </set>
- </parameter>
-
- <!-- Base binding metadata that is used to create bindings for each set -->
- <parameter>
-<inject bean="StandardBindings"/>
-</parameter>
-
- </constructor>
- </bean>
-
-
- <!-- The ports-default bindings are obtained by taking the base bindings and adding 0 to each port value -->
- <bean name="PortsDefaultBindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
- <constructor>
- <!-- The name of the set -->
- <parameter>ports-default</parameter>
- <!-- Default host name -->
- <parameter>${jboss.bind.address}</parameter>
- <!-- The port offset -->
- <parameter>0</parameter>
- <!-- Set of bindings to which the "offset by X" approach can't be applied -->
- <parameter>
-<null/>
-</parameter>
- </constructor>
- </bean>
-
- <!-- The ports-01 bindings are obtained by taking the base bindings and adding 100 to each port value -->
- <bean name="Ports01Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
- <constructor>
- <!-- The name of the set -->
- <parameter>ports-01</parameter>
- <!-- Default host name -->
- <parameter>${jboss.bind.address}</parameter>
- <!-- The port offset -->
- <parameter>100</parameter>
- <!-- Set of bindings to which the "offset by X" approach can't be applied -->
- <parameter>
-<null/>
-</parameter>
- </constructor>
- </bean>
-
- <!-- The ports-02 bindings are obtained by taking ports-default and adding 200 to each port value -->
- <bean name="Ports02Bindings" class="org.jboss.services.binding.impl.ServiceBindingSet">
- <constructor>
- <!-- The name of the set -->
- <parameter>ports-02</parameter>
- <!-- Default host name -->
- <parameter>${jboss.bind.address}</parameter>
- <!-- The port offset -->
- <parameter>200</parameter>
- <!-- Set of bindings to which the "offset by X" approach can't be applied -->
- <parameter>
-<null/>
-</parameter>
- </constructor>
- </bean>
-
- <!-- The ports-03 bindings are obtained by taking ports-default and adding 300 to each port value -->
- <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>300</parameter>
- <!-- Set of bindings to which the "offset by X" approach can't be applied -->
- <parameter>
-<null/>
-</parameter>
- </constructor>
- </bean>
-
- <!-- Base binding metadata that ServiceBindingStore uses to create bindings for each set -->
- <bean name="StandardBindings" class="java.util.HashSet">
- <constructor>
- <parameter class="java.util.Collection">
- <set elementClass="org.jboss.services.binding.ServiceBindingMetadata">
- <!-- ********************* conf/jboss-service.xml ****************** -->
-
- <!-- Naming Service -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=Naming</property>
- <property name="bindingName">Port</property>
- <property name="port">1099</property>
- <property name="description">The listening socket for the Naming service</property>
- </bean>
-
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=Naming</property>
- <property name="bindingName">RmiPort</property>
- <property name="port">1098</property>
- <property name="description">Socket Naming service uses to receive RMI requests from client proxies</property>
- </bean>
-
- <!-- Remote classloading service -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=WebService</property>
- <property name="port">8083</property>
- <property name="description">Socket for dynamic class and resource loading</property>
- </bean>
-
- <!-- Remoting Connector -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">UnifiedInvokerConnector</property>
- <property name="port">4446</property>
- <property name="description">Socket for JBoss Remoting Connector used by UnifiedInvoker</property>
- </bean>
-
- <!-- Used to create a multihome Remoting server. See -->
- <!-- deploy/remoting-jboss-beans.xml for more details. -->
- <!--bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">UnifiedInvokerConnector:bindingHome1</property>
- <parameter>192.168.2.2</property>
- <property name="port">7777</property>
- <property name="description">Socket for JBoss Remoting Connector used by UnifiedInvoker on a multihome server</property>
- </bean-->
-
- <!-- Used to create a multihome Remoting server. See -->
- <!-- deploy/remoting-jboss-beans.xml for more details. -->
- <!--bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">UnifiedInvokerConnector:bindingHome2</property>
- <parameter>10.11.12.238</property>
- <property name="port">8888</property>
- <property name="description">Socket for JBoss Remoting Connector used by UnifiedInvoker on a multihome server</property>
- </bean-->
-
- <!-- ********************* deploy/legacy-invokers-service.xml ****************** -->
-
- <!-- RMI/JRMP invoker -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=invoker,type=jrmp</property>
- <property name="port">4444</property>
- <property name="description">Socket for the legacy RMI/JRMP invoker</property>
- </bean>
-
- <!-- Pooled invoker -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=invoker,type=pooled</property>
- <property name="port">4445</property>
- <property name="description">Socket for the legacy Pooled invoker</property>
- </bean>
-
- <!-- ********************* deploy/cluster/hajndi-service.xml ****************** -->
-
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=HAJNDI</property>
- <property name="bindingName">Port</property>
- <property name="port">1100</property>
- <property name="description">The listening socket for the HA-JNDI service</property>
- </bean>
-
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=HAJNDI</property>
- <property name="bindingName">RmiPort</property>
- <property name="port">1101</property>
- <property name="description">Socket HA-JNDI service uses to receive RMI requests from client proxies</property>
- </bean>
-
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=HAJNDI</property>
- <property name="bindingName">AutoDiscovery</property>
- <property name="hostName">${jboss.partition.udpGroup:230.0.0.4}</property>
- <property name="port">1102</property>
- <property name="description">Multicast socket on which HA-JNDI listens for auto-discovery requests from clients</property>
- <!-- This address should not be changed between different
- binding sets; all nodes need to listen on the same
- multicast address -->
- <property name="fixedHostName">true</property>
- <!-- This port should not be changed between different
- binding sets; all nodes need to listen on the same port -->
- <property name="fixedPort">true</property>
- </bean>
-
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=HAJNDI</property>
- <property name="bindingName">AutoDiscoveryInterface</property>
- <property name="hostName">${jboss.bind.address}</property>
- <property name="description">Interface for multicast socket on which HA-JNDI listens for auto-discovery requests from clients</property>
- </bean>
-
- <!-- ********************* deploy/cluster/ha-legacy-service.xml ****************** -->
-
- <!-- HA RMI/JRMP invoker -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=invoker,type=jrmpha</property>
- <property name="port">4447</property>
- <property name="description">Socket for high availability version of the legacy RMI/JRMP invoker</property>
- </bean>
-
- <!-- HA Pooled invoker -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=invoker,type=pooledha</property>
- <property name="port">4448</property>
- <property name="description">Socket for high availability version of the legacy Pooled invoker</property>
- </bean>
-
- <!-- ********************* deploy/iiop-service.xml ****************** -->
-
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=CorbaORB</property>
- <property name="port">3528</property>
- <property name="description">IIOP socket for the Corba ORB</property>
- </bean>
-
- <!-- ********************* deploy/snmp-adaptor.sar **************** -->
-
- <!-- Trap receiver that acts as an SNMP Manager -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss.jmx:name=SnmpAgent,service=trapd,type=logger</property>
- <property name="port">1162</property>
- <property name="description">Socket for the SNMP trap receiver</property>
- </bean>
-
- <!-- The SNMP adaptor MBean -->
- <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="description">Socket for the SNMP adaptor MBean</property>
- </bean>
-
- <!-- ********************* deploy/jmx-remoting.sar **************** -->
-
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss.remoting:service=JMXConnectorServer,protocol=rmi</property>
- <property name="port">1090</property>
- <property name="description">RMI/JRMP socket for connecting to the JMX MBeanServer</property>
- </bean>
-
- <!-- ********************* deploy/ejb3-connectors-service.xml **************** -->
-
- <!-- EJB3 wants to have the service create its own ServiceBinding object
- dynamically. See the value-factory usage in deploy/ejb3-connectors-service.xml -->
-
-
- <!-- ********************* deploy/jbossweb.sar **************** -->
- <!-- ********************* deploy/httpha-invoker.sar **************** -->
-
- <!--
- JBoss Web server.xml configuration.
-
- Same binding config can be used by the following services, or really
- anything else that needs to point to the JBoss Web HTTP connector
- but doesn't need an XSL Transform
-
- jboss:service=invoker,type=http
- jboss:service=invoker,type=http,target=Naming
- jboss:service=invoker,type=http,target=Naming,readonly=true
- jboss:service=invoker,type=httpHA
- jboss:service=invoker,type=http,target=HAJNDI
- jboss.ws:service=ServiceEndpointManager
- -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss.web:service=WebServer</property>
- <property name="port">8080</property>
- <property name="description">JBoss Web HTTP connector socket; also drives the values for the HTTPS and AJP sockets</property>
-
- <!--
- Inject a XSLT transform configuration (see below) that describes
- how to transform server.xml
- If the binding value request doesn't require an XSL Transform, this config
- will be ignored.
- -->
- <property name="serviceBindingValueSourceConfig">
-<inject bean="JBossWebConnectorXSLTConfig"/>
-</property>
- </bean>
-
- <!-- For services like those listed above that need to know the
- port of the HTTPS connector -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss.web:service=WebServer</property>
- <property name="bindingName">HttpsConnector</property>
- <property name="port">8443</property>
- <property name="description">JBoss Web HTTPS connector socket</property>
- </bean>
-
- <!-- ********************* deploy/messaging/remoting-bisocket-service.xml ********************** -->
-
- <!-- Standard JBM bisocket connector -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss.messaging:service=Connector,transport=bisocket</property>
- <property name="port">4457</property>
- <property name="description">Socket for JBoss Messaging 1.x</property>
- </bean>
-
- <!-- ********************* JBoss Messaging 2 **************** -->
-
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">JBM2</property>
- <property name="bindingName">netty-port</property>
- <property name="port">5445</property>
- <property name="description">Socket for JBoss Messaging 2.x</property>
- </bean>
-
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">JBM2</property>
- <property name="bindingName">netty-ssl-port</property>
- <property name="port">5446</property>
- <property name="description">SSL socket for JBoss Messaging 2.x</property>
- </bean>
-
- <!-- ********************* deploy/transaction-jboss-beans.xml ********************** -->
-
- <!-- JBossTS Recovery Manager -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">TransactionManager</property>
- <property name="bindingName">recoveryManager</property>
- <property name="port">4712</property>
- <property name="description">Socket for JBossTS Recovery Manager</property>
- </bean>
-
- <!-- JBossTS Transaction Status Manager -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">TransactionManager</property>
- <property name="bindingName">transactionStatusManager</property>
- <property name="port">4713</property>
- <property name="description">Socket for JBossTS Transaction Status Manager</property>
- </bean>
-
- <!-- JBossTS SocketProcessId. The address part is ignored,
- it will always use localhost/127.0.0.1. -->
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">TransactionManager</property>
- <property name="bindingName">socketProcessId</property>
- <property name="port">4714</property>
- <property name="description">Socket used to provide unique process id for JBossTS. The address configuration is ignored; will always use localhost/127.0.0.1</property>
- </bean>
-
- <!-- ********************* deploy/hsqldb-ds.xml **************** -->
-
- <!-- Commented out as tcp/ip access to Hypersonic is not enabled by default -->
- <!--
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss:service=Hypersonic</property>
- <property name="port">1701</property>
- <property name="description">TCP/IP socket for remote connection to Hypersonic database</property>
- </bean>
- -->
-
- <!-- ********************* JBoss MQ **************** -->
-
- <!-- Commented out as JBoss MQ is not installed by default
- If you uncomment this and also use jboss.mq:service=InvocationLayer,type=HTTP,
- configure the http invocation layer using the jboss.web:service=WebServer binding above
- -->
- <!--
- <bean class="org.jboss.services.binding.ServiceBindingMetadata">
- <property name="serviceName">jboss.mq:service=InvocationLayer,type=UIL2</property>
- <property name="port">8093</property>
- <property name="description">UIL2 socket for JBossMQ</property>
- </bean>
- -->
- </set>
- </parameter>
- </constructor>
- </bean>
-
- <!-- Conversion of selected bindings into system properties -->
- <bean name="SystemPropertyBinder" class="org.jboss.services.binding.SystemPropertyBinder">
-
- <constructor>
- <parameter>
- <set>
- <!-- JBM's remoting connector -->
- <bean class="org.jboss.services.binding.SystemPropertyBinding">
- <constructor>
- <parameter>jboss.messaging.connector.bisocket.port</parameter>
- <parameter class="int">
- <value-factory bean="ServiceBindingManager" method="getIntBinding" parameter="jboss.messaging:service=Connector,transport=bisocket"/>
- </parameter>
- </constructor>
- </bean>
- <!-- JBM2 netty connector -->
- <bean class="org.jboss.services.binding.SystemPropertyBinding">
- <constructor>
- <parameter>jbm.remoting.netty.port</parameter>
- <parameter class="int">
- <value-factory bean="ServiceBindingManager" method="getIntBinding">
- <parameter>JBM2</parameter>
- <parameter>netty-port</parameter>
- </value-factory>
- </parameter>
- </constructor>
- </bean>
- <!-- JBM2 netty ssl connector -->
- <bean class="org.jboss.services.binding.SystemPropertyBinding">
- <constructor>
- <parameter>jbm.remoting.netty.ssl.port</parameter>
- <parameter class="int">
- <value-factory bean="ServiceBindingManager" method="getIntBinding">
- <parameter>JBM2</parameter>
- <parameter>netty-ssl-port</parameter>
- </value-factory>
- </parameter>
- </constructor>
- </bean>
- </set>
- </parameter>
- </constructor>
-
- </bean>
-
- <!-- XSL Transform to apply to server.xml -->
- <bean name="JBossWebConnectorXSLTConfig" class="org.jboss.services.binding.impl.XSLTServiceBindingValueSourceConfig">
-
- <constructor>
- <parameter>
- <xsl:stylesheet
- xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
-
- <xsl:output method="xml" />
- <xsl:param name="port"/>
-
- <xsl:variable name="portAJP" select="$port - 71"/>
- <xsl:variable name="portHttps" select="$port + 363"/>
-
- <xsl:template match="/">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match = "Connector">
- <Connector>
- <xsl:for-each select="@*">
- <xsl:choose>
- <xsl:when test="(name() = 'port' and . = '8080')">
- <xsl:attribute name="port"><xsl:value-of select="$port" /></xsl:attribute>
- </xsl:when>
- <xsl:when test="(name() = 'port' and . = '8009')">
- <xsl:attribute name="port"><xsl:value-of select="$portAJP" /></xsl:attribute>
- </xsl:when>
- <xsl:when test="(name() = 'redirectPort')">
- <xsl:attribute name="redirectPort"><xsl:value-of select="$portHttps" /></xsl:attribute>
- </xsl:when>
- <xsl:when test="(name() = 'port' and . = '8443')">
- <xsl:attribute name="port"><xsl:value-of select="$portHttps" /></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="{name()}"><xsl:value-of select="." /></xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- <xsl:apply-templates/>
- </Connector>
- </xsl:template>
-
- <xsl:template match="*|@*">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
-
- </parameter>
- </constructor>
- </bean>
-
-</deployment>
More information about the jboss-svn-commits
mailing list