• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 932
  • Last Modified:

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
wsadmin>$AdminConfig show (cells/cell_xxx/nodes/node_yyy/servers/server_xxx:sever.xml#MonitoringPolicy_1141073704002)
{autoRestart true}
{maximumStartupAttempts 3}
{nodeRestartState STOPPED}
{pingInterval 60}
{pingTimeout 300}

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....
1 Solution
milton393Author Commented:
Thank you!
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.

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now