How to code in Jacl to set JVM automatic restart to "false"

Posted on 2006-04-18
Last Modified: 2013-12-10
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: -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....
Question by:milton393
    LVL 41

    Accepted Solution


    Author Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
    This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now