Configuring WebLogic Shared Libraries
This section describes the configuration steps required to configure a WebLogic Shared Library when you're using the WebLogic plugin for Application Release Automation. This configuration is then used during deployment to create/modify the WebLogic Shared Libraries.
A Domain can contain zero or more Shared Libraries; the creation of just one Shared Library is shown here but this is easily extended to multiple Shared Libraries. The Jython variable SharedLibList is used by the plugin to pass the list of zero or more Shared Libraries to be created.
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 Shared Libraries being created. Any change done to the properties in this file will be reflected in the Shared Libraries created/modified by the tool.
About this task
This task creates the minimum set required for the creation of a WebLogic Shared Libraries.
Procedure
A pre-requisite is that the configuration for a Domain, AdminServer, and at least one Managed Server or Cluster have already been completed in the Jython file. There can be multiple Shared Libraries and we will show afterwards how a list of them is created.
Change the required set of parameters in the dictionary structure of the Shared Library template copy using the information in the table below and respecting the Jython syntax. The parameters set will reflect the Shared Library configuration that you want to create. Once the Shared Library properties are set, the instance has to be added to the SharedLibList list so it is eligible for creation. The list is what is read by the tool.
Variable | Description | Valid values | Default value |
libName | Name of the shared library to be deployed. | String | exampleLib |
libPath | Path to the shared library, absolute or relative to the project archive. | String | j2ee/lib/lib.jar |
libTargets | Comma-separated list of targets. | String | GenericCluster |
SharedLibList = [SharedLib_1,]
Example
The example below shows the configuration required to create a new Shared Library with values taken from the dictionary file.
SharedLib_1 = {'libName' : '@@libName_1@@', 'libPath' : '@@libPath_1@@', 'libTargets' : '@@libTargets_1@@'}
What to do next
You can now configure the other Domain objects, such as WebLogic DataSources, JMSResources and so on.