Use the following python script to configure the long-running scheduler and long-running execution environment.
The setupLongRunning.py script is located in the <install_root>\bin directory.
To run the setupLongRunning.py script with wsadmin, use the following command:
wsadmin -lang jython -f setupLongRunning.py type [options]
Replace type [options] variables with the appropriate type and options for your task. You might have to modify the wsadmin command to wsadmin.sh or wsadmin.bat, depending upon your operating environment.
Option | Description |
---|---|
--ngName | Specifies the node group to be set up to host the long-running scheduler. |
--dcName | Specifies the dynamic cluster where the long-running scheduler application is to be deployed. |
--dcMode | Optional: Specifies the dynamic cluster operational
mode:
|
--appName | Optional: Specifies an application name. Default is LongRunningScheduler. |
--schema | Specifies the database schema name for the long-running scheduler database. Default is LRSSCHEMA. |
--jndiName | Specifies the data source name where jobs are stored. |
--aliasName | Optional: Specifies the alias to a user name and password used to access the data source. |
Option | Description |
---|---|
--ngName | Specifies the node group to be set up for the long-running execution environment. |
--dcName | Specifies the dynamic cluster where the long-running execution environment application is to be deployed. |
--dcMode | Optional: Specifies the dynamic cluster operational
mode:
|
--appName | Optional: Specifies an application name. Default is LREE. |
--dbType | Specifies the database type which is supported by the ejbdeploy command. Following are some possible values:
|
--schema | Specifies the database schema name for the long-running execution environment database. Default is LREESCHEMA. |
--jndiName | Specifies the data source name where jobs status and result is stored. |
Show the help information:
./wsadmin.sh -lang jython -f setupLongRunning.py
./wsadmin.sh -lang jython -f setupLongRunning.py lrs --help
./wsadmin.sh -lang jython -f setupLongRunning.py lree --help
./wsadmin.sh -lang jython -f setupLongRunning.py lrs --ngName SchedulerNG --dcName Scheduler --jndiName jdbc/lrsched
./wsadmin.sh -lang jython -f setupLongRunning.py lree --ngName NodeGroup1 --dcName EndPoint1 --jndiName jdbc/lree --dbType DB2UDB_V81