Run Jython Scripts Without Wsadmin Overhead
WebSphere comes with it’s own jython runtime environment that is used with wsadmin. When composing wsadmin scripts it is often helpful to have a jython runtime on your laptop to work out kinks that are not directly related to WebSphere’s administrative objects (AdminContorl, AdminConfig, AdminList, AdminTask). You can download and install jython for this purpose, however there are discrepancies between the openSource version and WebSphere’s version. You could also start up wsadmin for this purpose, however the overhead of the WebSphere libraries during start-up can cause annoying delays.
My preferred option is to execute the WebSphere jython environment without the overhead of wsadmin. I also have utility jython scripts that are not strictly used with WebSphere - and I can execute them without having to install another jython runtime environment. The following command allows you to startup WebSphere’s Jython envrironment minus wsadmin:
java -Dpython.home="${WAS_HOME}/optionalLibraries/jython" -classpath ${WAS_HOME}/optionalLibraries/jython/jython.jar org.python.util.jython
Replace ${WAS_HOME} with your appropriate path - and make sure that java is in your path. If you want to execute a jython file, append the file path to the end of the command.
November 23rd, 2008 at 2:38 pm
Have anyone had any luck with getting the wsadmin thin client to work?