|
| Re: Management of custom configuration properties |
 |
Mon, 5 May 2008 04:11:31 -0700 |
The general mechanism for managing this is to use a deployment plan. See
http://e-docs.bea.com/wls/docs100/deployment/config.html#wp1057831
WebLogic 10.3 tech preview also added a feature that allows one to
override resources retrieved from the classloader (ie: if the app
supplied a log4j.properties in it, you can override that file). Look at
the "generic overrides" in:
http://e-docs.bea.com/wls/essex/TechPreview/pdf/Performance.pdf
Basically, the properties files can be placed into a new optional
subdirectory named "AppFileOverrides" in the plan directory to
override
resources files that the application code is loading from the
application (ie: using classloader.get
The files are distributed/staged along with the plan directory for
deployments.
Tony
Darrell Lowrance wrote:
> Does Weblogic offer anything that allows a web app to access URL resources
to retrieve properties or xml files so the app will automatically load the
correct properties for its environment?
>
> Websphere offers an excellent solution using J2EE standards and a few
IBM-specific features. A properties and/or xml files can be retrieved from a
remote http, ftp, or file share at startup. Resource references are configured
within the webapp and the URL resources on the app server so that the correct
properties are loaded without having to manually edit properties/xml files after
deployment to different environments.
>
> For details, please read--
> http://www.ibm.com/developerworks/websphere/library/techarticles/0502_bot |
| Post Reply
|
|
|
|
|
|
|
|
|
|