Using Deployment Plan to Alter Environment Variable Values (Defined in web.xml) to Suit Different Environments
Last updated on DECEMBER 19, 2017
Applies to:Oracle WebLogic Server - Version 10.3 and later
Information in this document applies to any platform.
***Checked for relevance on 19-Dec-2017***
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://localhost:7001":
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.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms