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

    unsolved problem with binding-manager

    Thomas Wenckebach Newbie

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

      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,