[jboss-svn-commits] JBL Code SVN: r14448 - labs/jbossesb/trunk/product/install.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Aug 22 09:19:20 EDT 2007
Author: kevin.conner at jboss.com
Date: 2007-08-22 09:19:20 -0400 (Wed, 22 Aug 2007)
New Revision: 14448
Modified:
labs/jbossesb/trunk/product/install/bindings.xslt
Log:
Configure MessageStore DB using ServiceBinding: JBESB-845
Modified: labs/jbossesb/trunk/product/install/bindings.xslt
===================================================================
--- labs/jbossesb/trunk/product/install/bindings.xslt 2007-08-22 13:10:46 UTC (rev 14447)
+++ labs/jbossesb/trunk/product/install/bindings.xslt 2007-08-22 13:19:20 UTC (rev 14448)
@@ -4,32 +4,77 @@
<xsl:template match="server[@name='ports-default']">
<xsl:call-template name="process-server">
<xsl:with-param name="serverName" select="@name"/>
+ <xsl:with-param name="messageStorePort" select="9001"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="server[@name='ports-01']">
<xsl:call-template name="process-server">
<xsl:with-param name="serverName" select="@name"/>
+ <xsl:with-param name="messageStorePort" select="9101"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="server[@name='ports-02']">
<xsl:call-template name="process-server">
<xsl:with-param name="serverName" select="@name"/>
+ <xsl:with-param name="messageStorePort" select="9201"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="server[@name='ports-03']">
<xsl:call-template name="process-server">
<xsl:with-param name="serverName" select="@name"/>
+ <xsl:with-param name="messageStorePort" select="9301"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="process-server">
<xsl:param name="serverName"/>
+ <xsl:param name="messageStorePort"/>
<xsl:copy xml:space="preserve"><xsl:apply-templates select="@*|node()"/>
- <xsl:comment> ************ ESB configuration for server <xsl:value-of select="$serverName"/> ************ </xsl:comment><xsl:text>
+ <xsl:comment> ************ ESB configuration for server <xsl:value-of select="$serverName"/> ************ </xsl:comment>
+
+ <!-- Message Store Hypersonic database when using the tcp/ip access -->
+ <service-config name="jboss.jca:service=ManagedConnectionFactory,name=JBossESBDS"
+ delegateClass="org.jboss.services.binding.XSLTConfigDelegate"
+ >
+ <delegate-config>
+ <xslt-config configName="ManagedConnectionFactoryProperties"><![CDATA[
+<xsl:stylesheet
+ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
+
+ <xsl:output method="xml" />
+ <xsl:param name="host"/>
+ <xsl:param name="port"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="config-property[@name='ConnectionURL']">
+ <config-property type="java.lang.String" name="ConnectionURL">jdbc:hsqldb:hsql://<xsl:value-of select='$host'/>:<xsl:value-of select='$port'/></config-property>
+ </xsl:template>
+
+ <xsl:template match="*|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+</xsl:stylesheet>
+]]>
+ </xslt-config>
+ </delegate-config>
+ <binding host="${{jboss.bind.address}}" port="{$messageStorePort}" />
+ </service-config>
+
+ <service-config name="jboss:service=Hypersonic,database=jbossesb"
+ delegateClass="org.jboss.services.binding.AttributeMappingDelegate"
+ >
+ <delegate-config portName="Port" hostName="BindAddress"/>
+ <binding host="${{jboss.bind.address}}" port="{$messageStorePort}" />
+ </service-config><xsl:text>
</xsl:text></xsl:copy>
</xsl:template>
More information about the jboss-svn-commits
mailing list