320 WebSphere Application Server V8.5 Administration and Configuration Guide for the Full Profile
8.1 Overview of WebSphere scripting
WebSphere Application Server provides a scripting interface based on the Bean Scripting
Framework (BSF).
This interface is called wsadmin. BSF is an open source project that is
used to implement an architecture for incorporating scripting into Java applications and
applets. The BSF architecture works as an interface between Java applications and scripting
languages. Using this framework allows scripting languages to complete the following tasks:
Look up a preregistered bean and access a predeclared bean.
Register a newly created bean.
Perform all bean operations.
Bind events to scripts in the scripting language.
Because wsadmin uses BSF, it can make various Java objects available through
language-specific interfaces to scripts. Figure 8-1 shows the major components that are
involved in the wsadmin scripting solution.
Figure 8-1 Scripting in wsadmin
You can use the following programming languages to write wsadmin scripts:
Jython
Jacl
With WebSphere Application Server V7, the deprecation process for the Jacl syntax began.
The script library and the command assistance on the administrative console support only
Jython.
If you have existing Jacl scripts and want to start migrating to Jython, you can use the
Jacl-to-Jython conversion utility to convert the scripts. This conversion assistant typically
achieves 95-98% of a preliminary conversion. In most cases, the resulting conversion is
syntactically and runtime equivalent.
However, verify each line to ensure that the code functions as you originally intended. When
Jacl and Jython language differences result in lines of code that are difficult to convert
automatically, the converted lines are flagged with a #?PROBLEM? tag. This tag provides
assistance in finding areas that are most likely in need of manual conversion.
Java Virtual Machine
Resources
Connector
Mbean
Server
ObjectName
Mbeans
ObjectName
Mbeans
5 Management
Objects
AdminConfig
AdminApp
AdminTask
AdminControl
Help

Get WebSphere Application Server V8.5 Administration and Configuration Guide for the Full Profile now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.