Introduction.
The WSAdmin proc library is a procedure library designed to automate
the most common WebSphere admin tasks. The proclib
is written in Jacl which is supported in WebSphere 6.1 and 7.0
but not 7.1.
The proclib may still be of use to Jython programmers beause it
demonstrates the use of the WSAdmin objects used to manipulate the
underlying WAS Xml config files and these are portable between Jacl and
Jython. IBM have provided a tool in 6.1 to convert Jacl syntax to
Jython so it may be relatively easy to convert this proclib to Jython.
PROCEDURE LIBRARY: HTML
Tcl Doc Format
Script
Library Zip File
Usage.
The script library was developed in the Eclipse 3.3 environment using
the Tcl Eclipse Plugin. The
scripts can be run directly from Eclipse against a remote Deployment
Manager Instance.
The procedures are designed to be sourced by top level Jacl scripts
which control the logic flow. The parameters for each procedure
are defined in either the calling Jacl script or provided via property
files coded in java property file format. The property
files are loaded into a Java property object(hashMap_proc.tcl ) which
then provides the property values on request. The top level jacl
scripts act as the top level scripting layer in the
Eclipse environment and contain
hard coded references to such things as property file and procedure
locations and are task specific. They are called directly by the
wsadmin.bat
shell "wsadmin.bat -lang jacl -f /xxx/yyyl/deployMenuapp.tcl"
Resources.
Nagelfar Syntax
Checker: http://nagelfar.berlios.de/
Debugger:
http://www2.compassis.com/ramdebugger
CrowTde IDE:
http://crowtde.sourceforge.net/
Tcl Eclipse Plugin:
http://www.eclipsedltk.org/
Active State:
http://www.activestate.com/products/activetcl/
Tcl news group
comp.lang.tcl
Jacl home page
http://tcljava.sourceforge.net/docs/website/index.html
Jacl email list
http://tcljava.sourceforge.net/docs/website/mail.html
Sourceforge Jacl site
http://sourceforge.net/projects/tcljava/
The only development tools that I am aware of that can be used with
WSAdmin(Jacl) are the Tcl Eclipse Plugin and Nagelfar static syntax
checker. Nalgelfar is a must particularly because of the way Tcl
uses braces and brackets to group commands. When used with
WSAdmin set Nagelfar to detect errors only(options >> severity
level >> show errors). Download the Active Tcl distro to
provide the Tcl/Tk runtime for Nagelfar or just download the exe if
running on Windows.

Example 1
- Install DataSource Definition.
Example 1
Example 2
- Install Application.
Example 2