0 Replies Latest reply on Jan 23, 2006 9:20 AM by Thomas Wenckebach

    unsolved problem with binding-manager

    Thomas Wenckebach Newbie

      Hello,
      I have the impression that overriding port/ host settings for group communication via binding-manager is still not possible. A posting going far back to 2003 ( http://www.jboss.com/index.html?module=bb&op=viewtopic&t=51400 ) mentioned a problem that is very similar to the one I face today in 2006 (unfortunately, the former author was not blessed with any reply from JBoss staff ...).
      So, if I want to use XSLTConfigDelegate in the following fashion

      <service-config name="jboss:service=DefaultPartition"
       delegateClass="org.jboss.services.binding.XSLTFileDelegate">
       <delegate-config>
       <xslt-config configName="PartitionConfig"><![CDATA[
       <xsl:stylesheet
       xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
      
       <xsl:output method="xml" />
       <xsl:param name="port"/>
      
       <xsl:template match="/">
       <xsl:apply-templates/>
       </xsl:template>
      
       <xsl:template match = "TCP">
       <TCP>
       <xsl:for-each select="@*">
       <xsl:choose>
       </xsl:when>
       <xsl:when test="(name() = 'start_port' and . = '7800')">
       <xsl:attribute name="port"><xsl:value-of select="$port" /></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/>
       </TCP>
       </xsl:template>
      
      
       <xsl:template match="*|@*">
       <xsl:copy>
       <xsl:apply-templates select="@*|node()"/>
       </xsl:copy>
       </xsl:template>
       </xsl:stylesheet>
       ]]>
       </xslt-config>
       </delegate-config>
       <binding port="${jboss.bind.port.clusterCom}"/>
      </service-config>
      

      I will end up with the same exception as my fellow in 2003 (partly quoted):

      12:34:06,842 WARN [ServiceConfigurator] Failed to apply service binding override
      javax.management.AttributeNotFoundException: Attribute 'PartitionConfig' found, but it is not readable
      at org.jboss.mx.server.AbstractMBeanInvoker.getAttribute(AbstractMBeanInvoker.java:319)
      at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:541)
      at org.jboss.services.binding.XSLTFileDelegate.applyConfig(XSLTFileDelegate.java:88)
      at org.jboss.services.binding.ServiceBindingManager.applyServiceConfig(ServiceBindingManager.java:255)


      Does anybody know how to do a work around? One idea would be to declare this Attribute 'PartitionConfig' readable - I learned from http://www.jboss.com/index.html?module=bb&op=viewtopic&t=51400 that this causes a problem for jmx-console. However, I am not using this console at all, so how could I change the access rights for this attribute?

      Thanks a lot,
      Thomas