0 Replies Latest reply on Feb 24, 2012 1:10 PM by pstackle

    Programmatically access configured path in standalone.xml

    pstackle

      Is there a way to programmatically access a path that is configured in the standalone.xml?

       

      I have something like this:

      {code:xml}

          <paths>

              <path name="data.root" relative-to="jboss.server.base.dir" path="custom-folder"/>

              <path name="messaging.dir" relative-to="data.root" path="messaging"/>

          </paths>

      {code}

       

      I would like to be able to access the fully resolved path by name somehow. Requesting "data.root" would return "/path/to/jboss/standalone/custom-folder" and requesting "messaging.dir" would return "/path/to/jboss/standalone/custom-folder/messaging".

       

      Is there a way to do this?