Scripting concepts
Scripting provides a non-graphical alternative to the console. Using wsadmin.sh, we can run scripts to configure and manage the product. The wsadmin tool supports two scripting languages: Jacl and Jython. Five objects are available : AdminControl, AdminConfig, AdminApp, AdminTask, and Help. Scripts use these objects to communicate with MBeans that run in product processes. MBeans are Java objects that represent JMX resources. JMX is a technology that provides a simple and standard way to manage Java objects.
Subtopics
- Use wsadmin scripting with JMX
JMX is a framework that provides a standard way of exposing Java resources, for example, application servers, to a system management infrastructure. Using the JMX framework, a provider can implement functions, such as listing the configuration settings, and editing the settings. This framework also includes a notification layer that management applications can use to monitor events such as the startup of an application server.
- WebSphere Application Server configuration model
Understanding the relationship between the different configuration objects is essential when creating wsadmin scripts that perform configuration function.
- Use wsadmin scripting with Jacl
Jacl is an alternate implementation of TCL, and is written entirely in Java code.
- Use wsadmin scripting with Jython
Jython is an alternate implementation of Python, and is written entirely in Java.