For web servers that are defined in the WebSphere Application
Server Network Deployment (ND) configuration, you can automatically
propagate the generated plugin-cfg.xml file to
web servers using the autoPropagate keyword option,
or by using the propagatePluginCfg.py script.
About this task
To propagate the generated plugin-cfg.xml file
using the autoPropagate keyword option, or the propagatePluginCfg.py script,
follow this procedure:
Procedure
- In the administrative console, go to the On
demand router settings page:
- For stand-alone on demand router (ODR) processes, click .
- For a static cluster of ODR processes, click .
- For a dynamic cluster of ODR processes, go to .
- In the Proxy plugin configuration policy section,
select the scope from the Generate plugin configuration drop-down
list.
- In the Proxy plugin configuration policy section,
define an absolute path to the script that you enter in the Plugin
config change script text box. The defined
script is invoked every time the plugin-cfg.xml is
dynamically updated.
- Enter the autoPropagate keyword in the Plugin
config change script text box to automatically propagate
the generated plugin-cfg.xml file.
- Enter the propagatePluginCfg.py script in the Plugin
config change script text box to automatically propagate
the generated plugin-cfg.xml file.
Example:
/opt/WAS/bin/wsadmin.sh -f /opt/WAS/bin/propagatePluginCfg.py -lang jython https://myIHSHost:8192
ihsusr ihsusrPassword /tmp/plugin-cfg.xml /opt/HTTPServer/plugins/config/webserver1/plugin-cfg.xml
/tmp/executeFirst.sh;/bin/executeSecond.sh;/opt/WAS/bin/wsadmin.sh -f /opt/WAS/bin/propagatePluginCfg.py
-lang jython https://myIHSHost:8192 ihsusr ihsusrPassword /tmp/plugin-cfg.xml
/opt/HTTPServer/plugins/config/webserver1/plugin-cfg.xml
- Click Apply, and save and synchronize
the changes.
- Restart the ODR for the changes to take effect. plugin-cfg.xml is
generated every time the ODR starts, when there are administrative
actions performed that impact what URIs the ODR handles, and when
changes in the environment affect the content of the plugin-cfg.xml file.