milton393
asked on
How to code in Jacl to set JVM automatic restart to "false"
I'm just starting to learn Jacl; so I'm not quite get used to some concept yet. Here is my goal. By default, WebSphere sets each JVM automatic restart as "true". I want to develop a Jacl script to change that setting to "false".
You can see the setting under WAS console---> Application Server ---> (pick a server name) -----> Process Definition ----> Monitoring Policy ----> automatic restart (Checked).
I'm learning Jacl by using interactive mode for now. Here is what I have done:
wsadmin.sh -user xxxxx -password xxxxx
wsadmin> $AdminConfig list MonitoringPolicy
(cells/cell_xxx/nodes/node _yyy/serve rs/server_ zzz:server .xml#Monit oringPolic y_11410737 04002)
(cells/cell_xxx/nodes/node _222/serve rs/server_ 333:server .xml#Monit oringPolic y_11410737 21587)
wsadmin>$AdminConfig show (cells/cell_xxx/nodes/node _yyy/serve rs/server_ xxx:sever. xml#Monito ringPolicy _114107370 4002)
{autoRestart true}
{maximumStartupAttempts 3}
{nodeRestartState STOPPED}
{pingInterval 60}
{pingTimeout 300}
wsadmin>
My question:
What may be the next few steps I should do in order to change the attribute, "autoRestart" to false?
Thanks for the tip....
You can see the setting under WAS console---> Application Server ---> (pick a server name) -----> Process Definition ----> Monitoring Policy ----> automatic restart (Checked).
I'm learning Jacl by using interactive mode for now. Here is what I have done:
wsadmin.sh -user xxxxx -password xxxxx
wsadmin> $AdminConfig list MonitoringPolicy
(cells/cell_xxx/nodes/node
(cells/cell_xxx/nodes/node
wsadmin>$AdminConfig show (cells/cell_xxx/nodes/node
{autoRestart true}
{maximumStartupAttempts 3}
{nodeRestartState STOPPED}
{pingInterval 60}
{pingTimeout 300}
wsadmin>
My question:
What may be the next few steps I should do in order to change the attribute, "autoRestart" to false?
Thanks for the tip....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I did the hard way of discovering the answer to my own question before you pointed out the last URL which contains many helpful tips on Jacl scripts. It'll be useful for my next step in developing my skill set. Thanks again.