2 Replies Latest reply on Aug 13, 2007 6:01 AM by loumaus

    Dynamic property loading on server startup

    loumaus


      I would like to assign my datasource properties ( url, driver, user, passwd ) dynamically on server startup.

      I have already tried to use the property file on server startup but this seems to work merely for the jboss-service.xml files.

      Is this possible and how would I do it ??

        • 1. Re: Dynamic property loading on server startup

          Yes. But I doubt you can use the property service will work
          since it is likely the parsing the -ds.xml before the property service sets them.
          There's no dependency mechanism to fix it if it is wrong.

          Instead use:
          ./run.sh -P file:///some/path/to/my.properties

          • 2. Re: Dynamic property loading on server startup
            loumaus

            i might not have described the problem as exact as needed.

            im already using a property file which is used on bootstrap ( set -P option ).

            i have declared some tokens in the jboss-service.xml files and in my oracle-ds.xml file.

            The tokens in the jboss-server.xml are properly parsed where as the onces in the oracle-ds.xml file are not touched.

            Eventually it looks to me like the bootstrap -P option does not work for any jca related configuration files.

            If this should be the case ( I could still made a mistake myself ) is there a way to let a jca adapter use a -ds.xml configuration file containing placeholders ????


            thanks again for your help