3 Replies Latest reply on Jun 22, 2009 3:25 AM by jaikiran pai

    JBoss 5.1 clustering improvements - update the Wiki please?

    Richard Kennard Novice

      Doesn't the syntax in JBoss 5's bindings-jboss-beans.xml...

      <parameter>${jboss.service.binding.set:ports-default}</parameter>


      ...allow changing the ports without hand-editing the bindings.xml file (as recommended by this Wiki http://www.jboss.org/community/wiki/ConfigurePorts)? It would be really neat to be able to do...

      run -c all -Djboss.service.binding.set=ports-01


      ...but this doesn't seem to quite work because the VM arg isn't passed through run.conf.bat (if you manually put it in the run.conf.bat it does). So close!

      Regards,

      Richard.

        • 1. Re: JBoss 5.1 clustering improvements - update the Wiki plea
          jaikiran pai Master

           

          "kennardconsulting" wrote:

          ...but this doesn't seem to quite work because the VM arg isn't passed through run.conf.bat (if you manually put it in the run.conf.bat it does). So close!



          That seems to be a bug then. The run.bat.conf was a recent addition, let's see what issue it might have (although i don't have a Windows system right now).


          • 2. Re: JBoss 5.1 clustering improvements - update the Wiki plea
            Richard Kennard Novice

            jaikiran,

            My apologies: it does work after all. It is a little confusing because the opening trace makes it look like it has forgotten the arg:

            C:\out-of-the-box\jboss-5.1.0.GA>bin\run -Djboss.service.binding.set=ports-01
            Calling C:\out-of-the-box\jboss-5.1.0.GA\bin\run.conf.bat
            ===============================================================================
            
             JBoss Bootstrap Environment
            
             JBOSS_HOME: C:\out-of-the-box\jboss-5.1.0.GA
            
             JAVA: N:\Program Files\Java\jdk6\bin\java
            
             JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server
            
             CLASSPATH: C:\out-of-the-box\jboss-5.1.0.GA\bin\run.jar


            ...but it works anyway.

            The Wiki definitely needs updating, though.


            • 3. Re: JBoss 5.1 clustering improvements - update the Wiki plea
              jaikiran pai Master

              That's because the -D option passed from the command prompt does not get set in the JAVA_OPTS. Instead it gets passed directly to the Main class which triggers the AS startup.