Configure XES Module for Docker to Work with TM
This section demonstates a way to configure XES Module for Docker to work with Transaction Management. In this scenario, Edifecs Transaction Management is hosted on a standalone computer which is accessible through the network. On another Unix computer Docker and XES Module for Docker are installed. To allow the XES Module for Docker to access the remote computer with TM, we pass an XEngine database connection settings file and a TM JMS connection settings file to the Docker container.
To export XEngine DB selector connection settings to a file:
- On the EAM System tab, Expand XEngine.
- Right-click Database Selector, and then click Properties.
- Expand the Database Selector on the left, and then select Connection.
- Provide database connection URL, Login, and Password.
- Click Check Connection to test the connection to the database.
- If the connection is successful, click OK.
- Go to the ${XERoot}\extensions\Selector\config\db folder. You should see the DBSelector.properties file. Later in this section, you will need this file to pass it to the Docker container.
To export TM JMS connection settings to a file
- Create a profile with a TM route.
- On the TM JMS service settings, specify the following:
- The provider URL
- The username
- The password
- Start the profile and ensure that it is running correctly.
- Extract all JMS connection settings as XEServer environment variables.
- Go to ${XESRoot/profiles}/<your_profile>/config/environment. You should see the .properties file containing JMS settings. Later in this section, we will need this file to pass it to the Docker container.
Run XEServer in Docker
On the computer with Docker installed, run the following command:
docker run -it \
--name tm \
--net="host" \
-v "/home/<userName>/docker/mount/license.lic":"/opt/Edifecs/XEServer/license.lic" \
-v "/home/<userName>/docker/mount/env/tm.properties":"/opt/Edifecs/XEServer/environment/tm.properties" \
-v "/home/<userName>/docker/mount/artifacts/DBSelector.properties":"/opt/Edifecs/XEngine/extensions/Selector/config/db/DBSelector.properties" \
-v "/home/<userName>/docker/mount/in":"/opt/Edifecs/XEServer/profiles/Dockerized TM/workspace/inbound" \
registry.stage.kollab.link/xes:9.0.0.0-SNAPSHOT \
--image "repository:/files/profiles/Dockerized TM/XEServer(9.0.0)_Dockerized TM.zip"
where: