Skip to content

Commit 50dc68d

Browse files
committed
Merge branch 'wdt-748-docs' into 'main'
updating docs for new discover-filters mechanism See merge request weblogic-cloud/weblogic-deploy-tooling!1457
2 parents a68adc8 + b1eaf0f commit 50dc68d

File tree

1 file changed

+38
-30
lines changed

1 file changed

+38
-30
lines changed

documentation/3.0/content/userguide/tools-config/domain_def.md

Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -188,30 +188,22 @@ weight: 2
188188

189189
#### Using the typedef file to exclude template installed resources from the model and archive
190190

191-
The Discover Domain Tool attempts to provide a sparse model by employing strategies such as not including attributes that are default values. It is important to not install template resources through the model. First, the templates will install the same resources in the target domain. Second, if you install resources from a on-premises domain into a target domain that is a later WebLogic version, it could cause conflicts.
192-
The `system-elements` section of the typedef file is used to assist the Discover Domain Tool. The `system-elements` section comprises a list that tells the tool what to exclude from the model and archive files.
191+
The Discover Domain Tool attempts to provide a sparse model by employing strategies such as not including attributes
192+
that are default values. It is important to not install template resources through the model. First, the templates
193+
will install the same resources in the target domain. Second, if you install resources from a on-premises domain into
194+
a target domain that is a later WebLogic version, it could cause conflicts. The Discover Domain Tool uses the
195+
`discover-filters` section of the typedef file to filter out discovered objects and exclude them from the model and
196+
archive files.
193197

194-
The list contains an entry for the type of resource to exclude along with a name or a regexp and name.
198+
The list contains an entry for each type of resource to exclude, along with a list of names or regular expressions
199+
that are used to match the name of the specified type to exclude.
195200

196-
The different types of resources are as follows:
197-
198-
| Resource name |
199-
| --- |
200-
| `apps` |
201-
|`coherence-clusters` |
202-
| `datasources` |
203-
| `file-stores`|
204-
| `jms` |
205-
| `jms-servers` |
206-
| `shared-libraries` |
207-
| `startup-classes` |
208-
| `wldf` |
209-
210-
The following example is the `system-elements` list in the `JRF.json` typedef file.
201+
The following example is the `discover-filters` list in the `JRF.json` typedef file. Note that the key is the model
202+
name starting from the top-level folder (and excluding the grouping construct names `topology`, `resources`, and `appDeployments`).
211203

212204
```json
213-
"system-elements": {
214-
"apps": [
205+
"discover-filters": {
206+
"/Application": [
215207
"^coherence-transaction-rar$",
216208
"^DMS Application.*",
217209
"^em$",
@@ -221,10 +213,10 @@ The following example is the `system-elements` list in the `JRF.json` typedef fi
221213
"^wsil-wls.*",
222214
"^wsm-pm$"
223215
],
224-
"coherence-clusters": [
216+
"/CoherenceClusterSystemResource": [
225217
"^defaultCoherenceCluster$"
226218
],
227-
"datasources": [
219+
"/JDBCSystemResource": [
228220
".*LocalSvcTblDataSource$",
229221
".*mds-owsm$",
230222
".*opss-audit-DBDS$",
@@ -233,17 +225,17 @@ The following example is the `system-elements` list in the `JRF.json` typedef fi
233225
".*opss-ds$",
234226
".*WLSSchemaDataSource$"
235227
],
236-
"file-stores": [
228+
"/FileStore": [
237229
"^JRFWSAsyncFileStore$",
238230
"^mds-owsm$"
239231
],
240-
"jms": [
232+
"/JMSSystemResource": [
241233
"^JRFWSAsyncJmsModule$"
242234
],
243-
"jms-servers": [
235+
"/JMSServer": [
244236
"^JRFWSAsyncJmsServer$"
245237
],
246-
"shared-libraries": [
238+
"/Library": [
247239
"^adf\\.oracle\\.businesseditor.*",
248240
"^adf\\.oracle\\.domain.*",
249241
"^adf\\.oracle\\.domain\\.webapp.*",
@@ -295,11 +287,11 @@ The following example is the `system-elements` list in the `JRF.json` typedef fi
295287
"^owasp\\.esapi.*",
296288
"^UIX.*"
297289
],
298-
"shutdown-classes": [
290+
"/ShutdownClass": [
299291
"^DMSShutdown$",
300292
"^JOC-Shutdown$"
301293
],
302-
"startup-classes": [
294+
"/StartupClass": [
303295
"^JMX Framework Startup Class$",
304296
"^JOC-Startup$",
305297
"^JPS Startup Class$",
@@ -311,8 +303,24 @@ The following example is the `system-elements` list in the `JRF.json` typedef fi
311303
"^DMS-Startup$",
312304
"^AWT Application Context Startup Class$"
313305
],
314-
"wldf": [
306+
"/WLDFSystemResource": [
315307
"^Module-FMWDFW$"
316308
]
317309
}
318-
```
310+
```
311+
312+
This mechanism also supports other named top-level fields; for example, `/JDBCStore` and `/MailSession`. It can also
313+
be used to exclude self-tuning-related resources that are nested. For example:
314+
315+
```json
316+
"discover-filters": {
317+
"/SelfTuning/WorkManager": [
318+
"^wm/SOAWorkManager$",
319+
"^SOA_Default_WM$",
320+
"^SOA_DataSourceBound_WM$",
321+
"^SOA_Notification_WM$",
322+
"^SOA_Request_WM$",
323+
"^SOA_EDN_WM$"
324+
]
325+
}
326+
```

0 commit comments

Comments
 (0)