Skip to content

Commit fedbcde

Browse files
ddsharperakillen
authored andcommitted
change wording for multiple model readme section and add example (#409)
* change wording for multiple model readme section and add example * added another example use case (adding server) * added attribute to example that did not change
1 parent 6b035cf commit fedbcde

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,40 @@ The Create Domain, Update Domain, Deploy Applications, and Validate Model Tools
224224

225225
weblogic-deploy\bin\createDomain.cmd -model_file modelOne,modelTwo,modelThree ...
226226

227-
In this case, the models are merged into a single model before being applied. Each successive model is layered onto the previous ones, so any existing values from the previous models are overwritten. The resulting model is then verified before being applied.
227+
In this case, the models are merged into a single model before being applied. Each successive model is added to the previous model. In cases where entities exist in both models, the attributes are combined and attribute values from successive models prevail. The resulting model is then verified before being applied.
228+
For example, if Model 1 looks like:
229+
```yaml
230+
topology:
231+
Server:
232+
m1:
233+
ListenPort: 7000
234+
Notes: "Server 1"
235+
m2:
236+
ListenPort: 9000
237+
```
238+
and Model 2 looks like:
239+
```yaml
240+
topology:
241+
Server:
242+
m1:
243+
ListenAddress: myhostname
244+
ListenPort: 8000
245+
m3:
246+
ListenPort: 10000
247+
```
248+
The attributes for server m1 are merged, server m2 is left unchanged, and server m3 is added. The resulting model would be:
249+
```yaml
250+
topology:
251+
Server:
252+
m1:
253+
ListenAddress: myhostname
254+
ListenPort: 8000
255+
Notes: "Server 1"
256+
m2:
257+
ListenPort: 9000
258+
m3:
259+
ListenPort: 10000
260+
```
228261

229262
## Downloading and Installing the Software
230263

0 commit comments

Comments
 (0)