1 Reply Latest reply on Jul 27, 2007 10:45 AM by peterj

    Using tokens in tomcat / jboss configuration files

    loumaus

      Is there a way to preset the target ports / thread information in variables inside run.sh / run.conf respectively in a way that jboss simply replaces tokens inside server.xml and jboss-service.xml ???

      point is ..

      we are looking for a way to share the jboss_home/server directory among several processes. This would imply as well sharing the working directory which would be the follow up question.

      thanks in advance

        • 1. Re: Using tokens in tomcat / jboss configuration files
          peterj

          Try setting system properties as part of the command line and using them in the configuration files. For example, to change the port, in run.conf you might have:

          JAVA_OPTS="-Dmy.port=8888 -Xms....."

          And in server.xml you might have:

          <Connector port="${my.port}" address="${jboss.bind.address}".....