WebLogic Domain

This section describes the configuration steps required to configure a WebLogic Domain in the WebLogic plugin. This configuration is then used during deployment to create/modify the WebLogic domain. The WebLogic domain creation is a pre-requisite to any other configuration task, such as the creation of managed servers and clusters, and is the minimum for any WebLogic configuration task.

Before you begin

Open or create a new Jython environment-specific configuration file. This file will contain the configuration settings that will describe the WebLogic domain being created. Any change made to the Domain properties in this file will be reflected in the domain created/modified by the tool.

About this task

This task creates the minimum set required for the creation of a WebLogic domain. Only one domain may be created per configuration file.

Procedure

Open the environment-specific py file and import the Domain template. This pre-populated template is typically populated with default values or None (Jython value for null) or a pre-defined name. The pre-defined names should typically be overridden in the environment-specific py file. Where a None value exists, the tool will preserve the default value setting.

from templates.DomainTemplate import *

Set up the global properties for the domain to be created.

These global properties define variables such as the location of the domain directory, the username/password and so on. This was explained in the overview section of the WebLogic configuration section.

Make a copy of the Domain Template using the provided deepcopy function and assign the name Domain to it. There is only one Domain object and is the object that will be created by the tool.

Domain = copy.deepcopy(DomainTemplate)

Change the required set of parameters of the Domain template copy by accessing the parameters using Jython syntax. The parameters set will reflect the domain configuration that you want to create.

Example

The example below shows the configuration required to create a new domain with the name ExampleDomain.

Additionally, for this domain, we enable the backing up of previous configuration files. Open and view the domain template (DomainTemplate.py) file for a list of all the parameters that may be set and to understand the syntax to be used to set each property.

Domain = copy.deepcopy(DomainTemplate)
Domain['Name'] = 'ExampleDomain'
Domain['Log']['Name'] = 'ExampleDomain'
Domain['WebAppContainer']['Name'] = 'ExampleDomain'
Domain['ConfigBackupEnabled'] = 'true'

What to do next

You should now configure the WebLogic AdminServer which is another minimum requirement.