1 Reply Latest reply on Jul 25, 2005 11:30 AM by Pepijn Palmans

    Create instance directories NOT under the 'server' dir

    Pepijn Palmans Newbie

      When I start a server with the -c option I get something like this: (used -c default)

      15:16:49,643 INFO [Server] Home Dir: /home/pepijn/testing/jboss/jboss-4.0.1sp1
      15:16:49,643 INFO [Server] Home URL: file:/home/pepijn/testing/jboss/jboss-4.0.1sp1/
      15:16:49,643 INFO [Server] Library URL: file:/home/pepijn/testing/jboss/jboss-4.0.1sp1/lib/
      15:16:49,644 INFO [Server] Patch URL: null
      15:16:49,714 INFO [Server] Server Name: default
      15:16:49,714 INFO [Server] Server Home Dir: /home/pepijn/testing/jboss/jboss-4.0.1sp1/server/default
      15:16:49,714 INFO [Server] Server Home URL: file:/home/pepijn/testing/jboss/jboss-4.0.1sp1/server/default/
      15:16:49,715 INFO [Server] Server Data Dir: /home/pepijn/testing/jboss/jboss-4.0.1sp1/server/default/data
      15:16:49,715 INFO [Server] Server Temp Dir: /home/pepijn/testing/jboss/jboss-4.0.1sp1/server/default/tmp
      15:16:49,715 INFO [Server] Server Config URL: file:/home/pepijn/testing/jboss/jboss-4.0.1sp1/server/default/conf/
      15:16:49,715 INFO [Server] Server Library URL: file:/home/pepijn/testing/jboss/jboss-4.0.1sp1/server/default/lib/

      Now, when I create an instance in /tmp/jbtest, I get something like this
      (after I start with -c /tmp/jbtest) :

      15:17:39,319 INFO [Server] Home Dir: /home/pepijn/testing/jboss/jboss-4.0.1sp1
      15:17:39,324 INFO [Server] Home URL: file:/home/pepijn/testing/jboss/jboss-4.0.1sp1/
      15:17:39,329 INFO [Server] Library URL: file:/home/pepijn/testing/jboss/jboss-4.0.1sp1/lib/
      15:17:39,404 INFO [Server] Patch URL: null
      15:17:39,410 INFO [Server] Server Name: /tmp/jbtest
      15:17:39,415 INFO [Server] Server Home Dir: /home/pepijn/testing/jboss/jboss-4.0.1sp1/server/tmp/jbtest
      15:17:39,420 INFO [Server] Server Home URL: file:/tmp/jbtest/
      15:17:39,426 INFO [Server] Server Data Dir: /home/pepijn/testing/jboss/jboss-4.0.1sp1/server/tmp/jbtest/data
      15:17:39,431 INFO [Server] Server Temp Dir: /home/pepijn/testing/jboss/jboss-4.0.1sp1/server/tmp/jbtest/tmp
      15:17:39,436 INFO [Server] Server Config URL: file:/tmp/jbtest/conf/
      15:17:39,442 INFO [Server] Server Library URL: file:/tmp/jbtest/lib/

      JBoss actually uses the directories in /tmp/jbtest, but not for everything.

      The big question here is how I can force jboss to NOT use the server dir under it's own installation path, but in stead use the directory in /tmp. After first startup, it created the work and tmp directories under server/tmp/jbtest in stead of doing this under /tmp/jbtest


      Someone played with this before ?


      Maybe it's all about changing these 'Data Dir' settings etc ?