Using Deployment Plan to Alter Environment Variable Values (Defined in web.xml) to Suit Different Environments
(Doc ID 1329176.1)
Last updated on SEPTEMBER 28, 2020
Applies to:Oracle WebLogic Server - Version 10.3 and later
Information in this document applies to any platform.
Sometimes there is a requirement to pass environment-specific data to an application. One of the possible ways is to declare this data in terms of environment variables ("env-entry" types) in a deployment descriptor of a JEE application. For instance, consider following snippet from web.xml where a "String" type environment variable "ldap_url" is defined and its value set to "ldap://host:port":
What if there is a need to pass a different value to variable "ldap_url" in different environments (like test or production) without actually touching the descriptor files? This document discusses a way forward with the use of WebLogic deployment plans.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document