21.8.3 Settings for concurrently using JP1/AJS3 in a container and on the container host machine
To concurrently use JP1/AJS3 in a container and on the container host machine, set the CONTAINER_HOST environment setting parameter to yes on the container host machine. If a JP1/AJS3 service is started or stopped on a container host machine on which the CONTAINER_HOST environment setting parameter is set to no or omitted, JP1/AJS3 might behave incorrectly. For example, the intended JP1/AJS3 service on the container host machine might not be started or an unintended JP1/AJS3 service in the container might be stopped.
The following shows the procedure for setting the CONTAINER_HOST environment setting parameter to yes on the container host machine:
-
In the container, stop the following services:
-
JP1/AJS3 Check Agent service
-
JP1/AJS3 Autonomous Agent service
-
-
On the container host machine, stop the following services:
-
JP1/AJS3 Check Agent service
-
JP1/AJS3 Autonomous Agent service
-
-
On the container host machine, run the following command to change the setting of the CONTAINER_HOST environment setting parameter to yes:
jajs_config -k "[JP1_DEFAULT\JP1AJS\HOST]" "CONTAINER_HOST"="yes"
For details about the definition of this environment setting parameter, see 20.3.2(21) CONTAINER_HOST.
-
On the physical host running on the container host machine, enable automatic startup and termination for the JP1/AJS3 services.
If necessary, in the automatic start and stop script, specify the settings for using the physical host as a container host machine. For details about the setting procedure, see 15.9.1 Setting automatic startup and termination of the JP1/AJS3 service.
-
On the logical host running on the container host machine, specify the settings that control startup and termination of JP1/AJS3.
If necessary, in the settings that control JP1/AJS3 when the JP1/AJS3 services are started or terminated in a logical host environment, add a setting for using the logical host as a container host machine. For details about the setting procedure, see 17.2.11 Specifying the settings that control startup and termination of JP1/AJS3 in a logical host environment.
-
Restart the services that you stopped in step 2.
-
Restart the container services that you stopped in step 1.