WAS v8.5 > Script the application serving environment (wsadmin) > Use the script library to automate the application serving environment using wsadmin.sh

Saving changes to the script library

The script library provides Jython script procedures to assist in automating the environment. We can save changes to the master configuration repository, disable the automatic saving of configuration changes, or discard configuration changes.

The scripting library provides a set of procedures to automate the most common application server administration functions. There are three ways to use the Jython script library.

The script library saves configuration changes to the master configuration repository by default when each script procedure completes. We can disable or enable the automatic saving of configuration changes with the AdminUtilities.configureAutoSave() script procedure. We can alternatively save changes to the configuration before leaving the wsadmin process using the AdminConfig.sav() command. We can discard configuration changes with the AdminConfig.reset() command.

CAUTION:

If you disable the autosave procedure, call script procedures, then enable the autosave procedure, automatic saving of script procedures in the same wsadmin process does not occur until you call another script procedure.


Results

Depending on the steps that you completed, we have disabled or enabled the automatic saving of configuration changes, completed the saving of configuration changes using the save command, or discarded the configuration changes.

Continue administering the environment using the script library.


Related


Automating server administration using wsadmin.sh
Automating administrative architecture setup using wsadmin.sh library
Automating application configuration
Automating business-level application configuration
Automating data access resource configuration using wsadmin.sh
Automating messaging resource configuration
Automating authorization group configuration
Automating resource configuration
Display script library help information using scripting


Reference:

Server settings configuration scripts
Server configuration scripts
Application installation and uninstallation scripts
Application query scripts
Application update scripts
Application export scripts
Application deployment configuration scripts
Application administration scripts
J2C query scripts
J2C configuration scripts
JMS configuration scripts
JMS query scripts
JDBC configuration scripts
JDBC query scripts
Resource configuration scripts
Authorization group configuration scripts
Business-level application configuration scripts
Utility scripts


+

Search Tips   |   Advanced Search