0 Replies Latest reply on Jul 9, 2003 9:04 AM by mfrost

    Sample XSLT for changing datasource port does not work


      Below is an extract from the sample binding file so that I can change the datasource and Hypersonic port from the default 1701 to 1702 (so I can run 2 JBoss on 1 machine)

      Problem is the XSL transformation does not change the port.

      Unfortunately the documentation describes applying this XSL to the mbean definition - but we don't use mbeans when defining datasources we use (see hsqldb-ds.xml).

      Therefore, can someone please tell me the structure for a datasource so that I can fix this "sample" XSL - or tell me the correct XSl fragment!

      I'm sure other people must be hitting this problem. Basically you cannot use the sample files to start 2 JBoss instances on 1 machine because of this.

      Many thanks


      <!-- Hypersonic related services -->
      <service-config name="jboss.jca:service=LocalTxDS,name=DefaultDS"
      <xslt-config configName="ManagedConnectionFactoryProperties"><![CDATA[
      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: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 match="*|@*">
      <xsl:apply-templates select="@*|node()"/>


      <service-config name="jboss:service=Hypersonic"
      <delegate-config portName="Port" />