4 Replies Latest reply on Nov 22, 2010 11:11 PM by August Simonelli

    setting mod_cluster properties with properties service or JVM args?

    August Simonelli Newbie

      Hello,

       

      I am trying to set properties within:

       

      mod-cluster.sar/META-INF/mod-cluster-jboss-beans.xml

       

      using

       

      /properties-service.xml

       

      The properties service loads properties from a file successfully (i can see them via the jmx-console).

       

      I added:

       

      <property name="balancer">${modclusterBalancerName}</property>

       

      to mod-cluster-jboss-beans.xml

       

      and added

       

      modclusterBalancerName=cluster

       

      to my properties service file. The jmx-console shows the varibale value is correctly set - however mod_cluster-manager shows:

       

      Balancer: ${modclusterBalancerName},Domain: ,Flushpackets:  Off,Flushwait: 10000,Ping: 10000000,Smax: 1,Ttl: 60000000,Elected:  0,Read: 0,Transferred: 0,Connected: 0,Load: 87

       

      I tried adding:

       

      <depends>jboss:name=SystemProperties,type=Service</depends>
      to
      /var/lib/jbossas/server/dev-jbsample/deploy/mod-cluster.sar/META-INF/mod-cluster-jboss-beans.xml

       

      but i think this was WAY off.

       

      If i set it via a JVM arg:

       

      -DmodclusterBalancerName=cluster

       

      it works fine.

       

      My guess is I don't understand how properties are loaded. Anyone able to set me on the right course?

       

      Thanks,

       

      August