You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/2.0/content/concepts/model.md
+13-19Lines changed: 13 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ resources:
66
66
JNDIName: jdbc/generic1
67
67
JDBCDriverParams:
68
68
DriverName: oracle.jdbc.OracleDriver
69
-
URL: 'jdbc:oracle:thin:@//@@PROP:dbcs1.url@@'
69
+
URL: jdbc:oracle:thin:@//@@PROP:dbcs1.url@@
70
70
PasswordEncrypted: '@@PROP:dbcs1.password@@'
71
71
Properties:
72
72
user:
@@ -195,10 +195,10 @@ When modeling configuration attributes that can have multiple values, the WebLog
195
195
resources:
196
196
JDBCSystemResource:
197
197
MyStringDataSource:
198
-
Target: 'AdminServer,mycluster'
198
+
Target: AdminServer,mycluster
199
199
JdbcResource:
200
200
JDBCDataSourceParams:
201
-
JNDIName: 'jdbc/generic1, jdbc/special1'
201
+
JNDIName: jdbc/generic1, jdbc/special1
202
202
...
203
203
MyListDataSource:
204
204
Target: [ AdminServer, mycluster ]
@@ -231,21 +231,15 @@ With WebLogic Deploy Tooling, you can specify named items in the model to be del
231
231
232
232
In this example, the managed server ```obsoleteServer``` will be deleted, and ```newServer``` will be created:
233
233
234
+
Note that the exclamation point, along with the name, should be inside quotation marks:
235
+
234
236
```yaml
235
237
Server:
236
-
!obsoleteServer:
238
+
'!obsoleteServer':
237
239
newServer:
238
240
ListenAddress: 127.0.0.1
239
241
ListenPort: 9005
240
242
```
241
-
242
-
If the name of the item requires quotation marks, the exclamation point should be inside the quotation marks:
243
-
244
-
```yaml
245
-
Server:
246
-
'!obsolete-server':
247
-
```
248
-
249
243
This feature can also remove items that were created by WebLogic Server templates. For example, the base template creates a default security realm called ```myrealm```. If a user chooses to declare a custom realm, ```myrealm``` is no longer needed. In this example, ```myrealm``` will be deleted, and the custom realm ```newrealm``` will be created, and declared as the default realm:
250
244
251
245
```yaml
@@ -269,8 +263,8 @@ In addition to deleting named mbeans, you can remove items from a list. Most pra
269
263
```yaml
270
264
JMSSystemResource:
271
265
BPMJMSModule:
272
-
Target: soa_cluster,!AdminServer
273
-
266
+
Target: soa_cluster,'!AdminServer'
267
+
274
268
```
275
269
In this example, the BPMJMSModule has the AdminServer target removed from the target list.
276
270
@@ -287,7 +281,7 @@ topology:
287
281
Server:
288
282
m1:
289
283
ListenPort: 7000
290
-
Notes: "Server 1"
284
+
Notes: Server 1
291
285
m2:
292
286
ListenPort: 9000
293
287
```
@@ -325,7 +319,7 @@ topology:
325
319
Server:
326
320
m1:
327
321
ListenPort: 7000
328
-
Notes: "Server 1"
322
+
Notes: Server 1
329
323
m2:
330
324
ListenPort: 9000
331
325
```
@@ -341,7 +335,7 @@ topology:
341
335
Server:
342
336
m1:
343
337
ListenPort: 7000
344
-
Notes: "Server 1"
338
+
Notes: Server 1
345
339
```
346
340
347
341
Similarly, an element without delete notation will completely replace an element with a matching name that has delete notation in a previous model. For example, if Model 1 looks like:
There are additional sub-folders and attributes available for more configuration options. These can be determined using the [Model Help Tool]({{< relref "/userguide/tools/model_help.md" >}}). For example, this command will list the attributes and sub-folders for the `Server` folder:
Copy file name to clipboardExpand all lines: documentation/2.0/content/samples/ohs-model.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,17 +33,17 @@ Configuring OHS typically involves adding two top-level folders to the `resource
33
33
```yaml
34
34
resources:
35
35
SystemComponent:
36
-
'my-ohs':
37
-
ComponentType: 'OHS'
38
-
Machine: 'my-machine'
36
+
my-ohs:
37
+
ComponentType: OHS
38
+
Machine: my-machine
39
39
OHS:
40
-
'my-ohs':
41
-
AdminHost: '127.0.0.1'
42
-
AdminPort: '9324'
43
-
ListenAddress: '127.0.0.1'
44
-
ListenPort: '7323'
45
-
SSLListenPort: '4323'
46
-
ServerName: 'http://localhost:7323'
40
+
my-ohs:
41
+
AdminHost: 127.0.0.1
42
+
AdminPort: 9324
43
+
ListenAddress: 127.0.0.1
44
+
ListenPort: 7323
45
+
SSLListenPort: 4323
46
+
ServerName: http://localhost:7323
47
47
```
48
48
Each name under the `OHS` folder must match a name under the `SystemComponent` folder in the model, or the name of a `SystemComponent` element that has been previously created. In this example, the name `my-ohs` is in both places.
0 commit comments