I have a super lightweight weblogic application and I need access to a string that will change depending on the environment. I’ve searched for a bit and all my options seem to require building classes and loaders etc. However with the number of application configuration files weblogic has I’m fully expecting there to be a better place to store a single global property for quick reference that can be changed using the plan.xml file.
Share
I think you can use
plan.xmlduring deployment time with entry as below to overridemyEnvVariablecontext variable value defined through context inweb.xml. Details are provided at Oracle Website.You may want to create different
plan.xmlfor different environments.Context variable in
web.xmlcan be defined as below:Context variables can be retrieved in server side using request object as below: