1 Reply Latest reply on Jul 10, 2009 6:32 AM by socallag

    runtime configuration

    vvchoy

      Hi,

       

      Currently in our project, the way we handle application (ie. SU) runtime configuration is as follows:

      • create a property file residing in the same directory as java source file (of our SU)

      • have some libraries that access the properties defined in the file during runtime.

       

      this is pretty rigid. So I am wondering how other projects handle their runtime configuration ?

      • externalization through spring PropertyPlaceHolderConfigurer ?

      • in term of packaging and deployment:

      - do they get packaged in the SU, and then deployed to a different deployment directory ?

       

      Appreciate any insights in this area .... Thanks.

        • 1. Re: runtime configuration
          socallag

          Hi,

           

          I've used the PropertyPlaceHolderConfigurer,

           

          e.g.:

           

           

           

          and then add a myconfig.properties file containing broker.address to the ESB's conf directory as this is automatically on the ESB's classpath.

           

          Hope this helps,

           

          Seán.