# WebLogic Domains Definitions

## Directory structure

| Name                           | Description                                                                                                   |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------- |
| ${WEBLOGIC\_DOMAIN\_DEF\_DIR}  | This is the base directory of all WebLogic Domains definition files. OFA default: /u01/app/weblogic/local/etc |
| ${WEBLOGIC\_DOMAIN\_DEF\_DIR}/ | Contains all definition files for a WebLogic Domain                                                           |

Each WebLogic domain must be declared in the CONFIGURATION FILE. This file is described in the point 6.2 below.

## DMK WebLogic Domains CONFIGURATION FILE <a href="#user-content-62-dmk-weblogic-domains-configuration-file" id="user-content-62-dmk-weblogic-domains-configuration-file"></a>

This file is named “weblogic\_domains.conf” and has to be located in the ${WEBLOGIC\_DOMAIN\_DEF\_DIR} directory. The syntax of this file is “ORATAB” like. This means there is one row per WebLogic domain that has three column separated fields:

```
<WebLogic Domain Name>:<WebLogic domain configuration path>:<Middleware Oracle Home directory> :[N|Y}
```

\<WebLogic Domain Name>: the name of the WebLogic Domain.\
\<WebLogic domain configuration path>: path to the domain configuration files.\
\<Middleware Oracle Home directory>: path to the Middleware software home.\
\[N|Y]; Automatic WebLogic Domain start. This feature is not implemented yet.

Example:

```
wlsdomain:/u02/app/weblogic/config/domains/wlsdomain:/u01/app/weblogic/Midddleware:N  
test_domain:/u02/app/weblogic/config/domains/test_domain:/u01/app/weblogic/Middleware:N
```

## WebLogic Domain specific files <a href="#user-content-63-weblogic-domain-specific-files" id="user-content-63-weblogic-domain-specific-files"></a>

Each WebLogic domain has a directory that defines the content and size of the Domain. There are five main files:

* Domain properties file (domain.properties)
* Two Node manager security files
* Two WebLogic domain security files

### Domain properties file (domain.properties) <a href="#user-content-631-domain-properties-file-domainproperties" id="user-content-631-domain-properties-file-domainproperties"></a>

The domain properties file describes the WebLogic domain in a sample manner. There are a few keywords that needs to be provided manually to allow the creation and management of the domain. The following part of this chapter provides the syntax of those keywords. In the following table, the WebLogic Server format is:

```
<serverDef> = name,machine,listenHost,listenPort,SSLListenPort
```

| Name                                                         | Description                                                                                                                                                    |
| ------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| DOMAIN\_NAME                                                 | String providing the name of the domain. It must match the directory name where the domain definition files are located.                                       |
| NM\_HOST                                                     | Admin Server Node Manager host                                                                                                                                 |
| NM\_PORT                                                     | Admin Server Node Manager Port                                                                                                                                 |
| NM\_TYPE                                                     | Admin Server Node Manager communication type \[SSL                                                                                                             |
| NM\_CONFIG\_FILE                                             | Node Manager user security configuration file                                                                                                                  |
| NM\_CONFIG\_FILE                                             | Node Manager user security configuration file                                                                                                                  |
| NM\_KEY\_FILE                                                | Node Manager user security key file                                                                                                                            |
| CONFIG\_FILE                                                 | WebLogic Domain Administrator user security configuration file                                                                                                 |
| NM\_KEY\_FILE                                                | WebLogic Domain Administrator user security key file                                                                                                           |
| ADMIN\_URL                                                   | URL to connect to the WebLogic Domain Administration Server                                                                                                    |
| CLUSTERS\_LIST                                               | Comma separated list of cluster names                                                                                                                          |
| SERVERS\_LIST                                                | Comma separated list of server names                                                                                                                           |
| ADMIN\_SERVER                                                | Administration Server definition in the format.                                                                                                                |
| SERVERS                                                      | List of WebLogic Servers definitions. The server names must be declared in SERVERS\_LIST previously set. The declaration format is: \|… \|                     |
| CLUSTERS                                                     | <p>List of WebLogic clusters definitions. The cluster names must be declared in CLUSTERS\_LIST previously set. The declaration format is:<br>\<clusterDef></p> |
| MACHINES                                                     | <p>List of machines definitions involved in this WebLogic Domain. The declaration format is:<br>\<machineDef></p>                                              |
| SYSTEM\_COMPONENTS                                           | <p>List of system components definitions involved in this WebLogic Domain. The declaration format is:<br>\<SysConfDef></p>                                     |
| Example: WebLogic Domain sampleDomain domain.properties file |                                                                                                                                                                |

```
NM_CONFIG_FILE=/u01/app/local/etc/sample_domain/NM_configfile.secure
NM_KEY_FILE=/u01/app/local/etc/sample_domain/NM_keyfile.secure
NM_HOST=host01.example.com
NM_PORT=5556
NM_TYPE=plain
CONFIG_FILE=/u01/app/local/etc/sample_domain/weblogic_configfile.secure
KEY_FILE=/u01/app/local/etc/sample_domain/domain_sample/weblogic_keyfile.secure
ADMIN_URL=t3://host01.example.com:7001
DOMAIN_NAME=sample_domain
DOMAIN_HOME=/u02/app/weblogic/config/domains/sample_domain
CLUSTERS_LIST=
SERVERS_LIST=server1
ADMIN_SERVER=AdminServer,machine1,host01,7001,7002
Pascal Brand · Version 1.8
25.04.2016 · DMK WebLogic · Page 17/25
dbi services sa www.dbi-services.com
Avenue de la Gare 42 Phone +41 32 422 96 00
CH-2800 Delémont Fax +41 32 422 96 15
CLUSTERS=
SERVERS=server1,machine1,host01,7003,7004,
MACHINES=machine1,UnixMachine,host01,5556,plain
```

Example 2: WebLogic Domain with clusters and servers; wlsdomain domain.properties

```
NM_CONFIG_FILE=/u01/app/local/etc/sample_domain/NM_configfile.secure
NM_KEY_FILE=/u01/app/local/etc/sample_domain/NM_keyfile.secure
NM_HOST=host01.example.com
NM_PORT=5556
NM_TYPE=plain
CONFIG_FILE=/u01/app/local/etc/sample_domain/weblogic_configfile.secure
KEY_FILE=/u01/app/local/etc/sample_domain/domain_sample/weblogic_keyfile.secure
ADMIN_URL=t3://host01.example.com:7001
DOMAIN_NAME=sample_domain
DOMAIN_HOME=/u02/app/weblogic/config/domains/sample_domain
CLUSTERS_LIST=cluster1
SERVERS_LIST=server3
ADMIN_SERVER=AdminServer,machine1,host01,7001,7002
CLUSTERS=cluster1:server1,machine1,host01,7011,7012:server2,machine2,host02,7013,7014
SERVERS=server3,machine1,host01,7019,7020,
MACHINES=machine1,UnixMachine,host01,5556,plain|machine2,UnixMachine,host02,5556,plain
```

Example 3: WebLogic Domain sampleDomain domain.properties file with System components

```
NM_CONFIG_FILE=/u01/app/local/etc/sample_domain/NM_configfile.secure
NM_KEY_FILE=/u01/app/local/etc/sample_domain/NM_keyfile.secure
NM_HOST=host01.example.com
NM_PORT=5556
NM_TYPE=plain
CONFIG_FILE=/u01/app/local/etc/sample_domain/weblogic_configfile.secure
KEY_FILE=/u01/app/local/etc/sample_domain/domain_sample/weblogic_keyfile.secure
ADMIN_URL=t3://host01.example.com:7001
DOMAIN_NAME=sample_domain
DOMAIN_HOME=/u02/app/weblogic/config/domains/sample_domain
CLUSTERS_LIST=
SERVERS_LIST=server1
ADMIN_SERVER=AdminServer,machine1,host01,7001,7002
CLUSTERS=
SERVERS=server1,machine1,host01,7003,7004,
MACHINES=machine1,UnixMachine,host01,5556,plain
SYSTEM_COMPONENTS=OHS,ohs1,localhost,FORMS,forms1,localhost|ReportsServerComponent,rsrvdev,localhost
```
