createOrUpdateDataSources
Creates or updates the data sources that are defined by properties files. The properties files will be processed for property replacement using ${{VARIABLE_NAME}}
format. See Property Replacement Support for more information about property replacement.
If using multiple files, make sure that the lists contain unique values across files. Best practice would be to use the WebLogic DataSource Name as the list identifier for datasources.
If you want to detect changes in WebLogic resource (properties) files and only deploy changed files, you can implement custom workflow as defined in Custom Workflow to detect changes in Properties Files.
Blog Posts
- https://flexagon.com/2017/03/automating-the-creation-of-weblogic-configurations/
- https://flexagon.com/2016/11/save-time-and-headache-automate-your-weblogic-data-source-configurations/
Environment/Instance Properties
Property Name | Property Code | Required | Description |
---|---|---|---|
Oracle Weblogic Home (WL_HOME) |
| Yes | WebLogic Home Directory. (e.g. /u01/oracle/products/fmw/wlserver) |
Weblogic Domain Name |
| Yes | WebLogic Domain Name. |
Weblogic Admin Listen Address |
| Yes | The listener address of the WLS admin server. (e.g. localhost) |
Weblogic Admin Listen Port |
| Yes | The port of the WLS admin server. (e.g. 7001) |
Weblogic Admin SSL Connection |
| No | Indicates whether the admin server is using SSL. |
Weblogic Admin User |
| Yes | The user name for the WLS admin server. |
Weblogic Admin Password |
| Yes | The password for |
Weblogic Admin Domain Directory |
| No | Weblogic Domain Directory for AdminServer. If not provided, |
Weblogic Domain Directory |
| Yes | Weblogic Domain Directory.(e.g. |
Project Properties
Property Name | Property Code | Required | Description |
---|---|---|---|
Inputs
Property Name | Property Code | Required | Description |
---|---|---|---|
Properties File Path | FILE_PATH_TO_PROPERTIES | No | Comma-separated list of paths to the properties file(s). |
Outputs
Output Name | Required | Description |
---|---|---|
FDWLS_OUT_IS_RESTART_REQUIRED | No | A |
Artifacts
This operation consumes properties-file artifacts.
Endpoint Selection
This operation will select all available endpoints associated to the Environment/Instance which have a resource type of WLS Admin Server . Since the admin server only runs on one server, it is expected that for a given domain, there will only be one endpoint with a resource type set to WLS Admin Server
Endpoint Execution
This operation will execute on the Admin Server endpoint selected using the WLS Admin Server resource type.
Special Considerations
If Properties File Path
is not specified, the FD_ARTIFACTS_DIR
folder will be used. If a relative path is specified, the path will be relative to the FD_ARTIFACTS_DIR
directory.
WebLogic configuration files including Data Sources are backed up to FD_TEMP_DIR/configbackup
before modifications. As with all files in the endpoint working directory, these files will be saved for 3 days before being deleted.
It is important to set up the properties files like the examples below.
Example Folder Structure
- Properties file can be named as per your requirements. See Example Properties File below.
datasources.properties
– This is the main properties file. The path to it is referenced by theProperties File Path
input.DEV/datasources.properties
- optionally create a file here and override some properties with it per environment. The filename must match.PROD/datasources.properties
- optionally have several environments.- Sub folder names for environment overrides must be FlexDeploy environment code.
Example Property File
This sample file defines two simple data sources with a sub-set of the available properties.