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.
I've used the PropertyPlaceHolderConfigurer,
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,