Migrating administrative scripts to Jython V2.1

Since the WebSphere® Application Server v5.1 release, the WebSphere administration scripting tool (wsadmin) supported both Jacl (Java™ TCL) and Jython (Java Python) as the scripting languages. When selecting a scripting language, Jython is the strategic direction as the administration scripting language for WebSphere Application Server because future enhancements of the scripting language is focused on the use of Jython. To leverage these Jython enhancements and tools, there is an IBM® Jacl to Jython Conversion Assistant, Jacl2Jython, to facilitate the migration.

The IBM Jacl to Jython Conversion Assistant (Jacl2Jython) is a program that assists in converting wsadmin scripts written in Jacl into Jython syntax. In most cases, the results of the conversions are syntactically equivalent and usually runtime equivalent. However, the differences in the Jacl and Jython scripting language might result in a few lines of script that are difficult to convert automatically by the Jacl2Jython program. In most of these cases, these preliminary converted lines of script are flagged #?PROBLEM? to mark areas in the script where you need to manual verify or alter the script to ensure the intended runtime results are maintained. While you need to manually review and verify all the converted script, the #?PROBLEM? comment flags help identify areas in the script that most likely require further processing.

In summary, the Jacl2Jython program is a conversion assistant which is designed to complete most of the preliminary conversion. However, you are responsible for manually verifying all of the preliminary conversion and manually convert or modify the code to make the script function as originally intended. Even if the preliminary conversion might appear correct, you are require to complete the line-by-line manual review and verification of the preliminary converted Jython scripts.

To migrate Jacl to Jython v2.1 scripts:

  1. Run the Jacl2Jython conversion assistant.
  2. Resolve Jacl2Jython input parser problems.
  3. Manually verify Jacl2Jython converted scripts.
Related reference
Scripting: Resources for learning

Feedback