Skip to content

Commit 7079fef

Browse files
authored
Merge pull request #874 from oracle/config-overrides-doc-update2
Update config overrides doc to recommend avoiding domain name stanzas…
2 parents ec65a25 + 83bd99d commit 7079fef

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

site/config-overrides.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,12 @@ The secret macro `SECRETNAME` field must reference the name of a Kubernetes secr
190190
* See the `max-message-size` stanza in [Override template samples](#override-template-samples) below for an example.
191191
* If you are changing the value of an existing attribute within a domain home `config.xml`, the attribute needs a `replace` verb.
192192
* See the `public-address` stanza in [Override template samples](#override-template-samples) below for an example.
193-
* When overriding `config.xml`, XML namespace `xmlns` abbreviations must be exactly as specified.
194-
* When overriding `config.xml`, the XML namespace (`xmlns:` in the XML) must be exactly as specified in [Override template schemas](#override-template-schemas).
195-
* For example, use `d:` to reference `config.xml` beans and attributes, `f:` for `add` and `replace` `domain-fragment` verbs, and `s:` to reference the situational config schema.
196-
* It is a best practice to use XML namespace abbreviations `jms:`, `jdbc:`, and `wldf:` respectively for JMS, JDBC, and WLDF (diagnostics) module override files.
193+
* When overriding `config.xml`:
194+
* The XML namespace (`xmlns:` in the XML) must be exactly as specified in [Override template schemas](#override-template-schemas).
195+
* For example, use `d:` to reference `config.xml` beans and attributes, `f:` for `add` and `replace` `domain-fragment` verbs, and `s:` to reference the situational configuration schema.
196+
* Avoid specifying the domain name stanza, as this may cause some overrides to be ignored (for example, server-template scoped overrides).
197+
* When overriding modules:
198+
* It is a best practice to use XML namespace abbreviations `jms:`, `jdbc:`, and `wldf:` respectively for JMS, JDBC, and WLDF (diagnostics) module override files.
197199

198200
## Override template samples
199201

@@ -212,7 +214,6 @@ The following `config.xml` override file demonstrates:
212214
<d:domain xmlns:d="http://xmlns.oracle.com/weblogic/domain"
213215
xmlns:f="http://xmlns.oracle.com/weblogic/domain-fragment"
214216
xmlns:s="http://xmlns.oracle.com/weblogic/situational-config" >
215-
<d:name>${env:DOMAIN_NAME}</d:name>
216217
<d:server>
217218
<d:name>admin-server</d:name>
218219
<d:max-message-size f:combine-mode="add">78787878</d:max-message-size>
@@ -290,7 +291,7 @@ The following `jdbc-testDS.xml` override template demonstrates setting the URL,
290291
* Any override changes require stopping all WebLogic pods, applying your domain resource (if it changed), and restarting the WebLogic pods before they can take effect.
291292
* Custom override changes on an existing running domain, such as updating an override configuration map, a secret, or a domain resource, will not take effect until all running WebLogic Server pods in your domain are shutdown (so no servers are left running), and the domain is subsequently restarted with your new domain resource (if it changed), or with your existing domain resource (if you haven't changed it).
292293
* To stop all running WebLogic Server pods in your domain, apply a changed resource, and then start/restart the domain:
293-
* Set your domain resource `serverRestartPolicy` to `NEVER`, wait, and apply your latest domain resource with the `serverRestartPolicy` restored back to `ALWAYS` or `IF_NEEDED` (see [Server Lifecycle](server-lifecycle.md) and [Restarting WebLogic servers](restart.md).)
294+
* Set your domain resource `serverStartPolicy` to `NEVER`, wait, and apply your latest domain resource with the `serverStartPolicy` restored back to `ALWAYS` or `IF_NEEDED` (see [Server Lifecycle](server-lifecycle.md) and [Restarting WebLogic servers](restart.md).)
294295
* Or delete your domain resource, wait, and apply your (potentially changed) domain resource.
295296
* See [Debugging](#debugging) for ways to check if the situational configuration is taking effect or if there are errors.
296297

0 commit comments

Comments
 (0)