1 Reply Latest reply on Dec 30, 2004 9:26 AM by Juha Lindfors

    Accessing conf files

    Graham Mead Newbie


      I need to gain access to an XML file in the "default/conf" directory of my JBoss server from a servlet running on the same server (default) but whose context root can't be changed.

      Any ideas how I can do this without an absolute path.

      Thank you


        • 1. Re: Accessing conf files
          Juha Lindfors Master

          Useful system properties:

          15:15:33,730 DEBUG [ServerInfo] jboss.server.base.url: file:/C:/Programs/JBoss/jboss-4.0.0/jboss-4.0.0/server/
          15:15:33,730 DEBUG [ServerInfo] jboss.home.dir: C:\Programs\JBoss\jboss-4.0.0\jboss-4.0.0
          15:15:33,730 DEBUG [ServerInfo] jboss.server.config.url: file:/C:/Programs/JBoss/jboss-4.0.0/jboss-4.0.0/server/default/conf/
          15:15:33,730 DEBUG [ServerInfo] jboss.home.url: file:/C:/Programs/JBoss/jboss-4.0.0/jboss-4.0.0/
          15:15:33,730 DEBUG [ServerInfo] jboss.server.home.url: file:/C:/Programs/JBoss/jboss-4.0.0/jboss-4.0.0/server/default/
          15:15:33,730 DEBUG [ServerInfo] jboss.lib.url: file:/C:/Programs/JBoss/jboss-4.0.0/jboss-4.0.0/lib/
          15:15:33,730 DEBUG [ServerInfo] jboss.server.name: default
          15:15:33,750 DEBUG [ServerInfo] jboss.server.data.dir: C:\Programs\JBoss\jboss-4.0.0\jboss-4.0.0\server\default\data