1 Reply Latest reply on Mar 12, 2009 10:45 AM by peterj

    "tmp" and "work" folder in jboss-4.0.4/server/some_config_na

    datasunny

      Hi all,

      A newbie question:
      Im using Jboss-4.0.4.
      When you start jboss by "run.sh -c some_config_name", there will be two extra folder "tmp" and "work" generated in jboss-4.0.4/server/some_config_name/. For some reason I prefer those two folder to be generated somewhere else. Is there such an option i can do that?

      Thanks.

        • 1. Re:
          peterj

          You can change the location of the tmp directory by setting the jboss.server.temp.dir property. The best way to do that is to add "-Djboss.server.temp.dir=/some/path" to JAVA_OPTS in run.conf (or in run.bat for any Windows users who find this post later).

          The work directory is set within Tomcat and for that one I am not so sure. You could try setting either the catalina.home or catalina.base system properties. If it works, the 'work' directory will be created in the directory specified by catalina.home or catalina.base.