4 Replies Latest reply on May 11, 2009 4:55 AM by Anders Andersen

    Property / environment variables in jboss-esb.xml

    blep Newbie


      I plan to deliver a portable solution based on JbossAS+JbossESB with the goal to make it work in any environment.

      My problem is to set paths in jboss-esb.xml, especially for fs-bus because if the path set in the attributes is relative, then it is dependant from the path where JbossAS had been launched:
      If AS had been launched by the following command:


      then the current AS path is /; but in case of:
      $:/>cd $JBOSS_HOME/bin ;; ./run.sh

      then the current AS pas is $JBOSS_HOME/bin which is not convenient to deliver a "just unzip an run" app.

      Is there any way to refer to the AS installation path or to an environment variable to set a generic config? Such as for the jboss-log4j.xml which allows to refer to the log directory with ${jboss.server.log.dir} ?