WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Is it possible to import WebSphere wsadmin as a jython module?

    Posted Tue January 31, 2012 08:10 PM

    In WebLogic, there's the WLST (WebLogic Scripting Tool) which is similar to WebSphere wsadmin. The nice thing about WLST is that you can import it as a module into other jython code and use it without any dependencies.


    Here's link that discusses this: ghattus.com/2006/01/06/wlst-as-a-jython-...


    Is the same thing possible with WebSphere wsadmin?




  • 2.  Is it possible to import WebSphere wsadmin as a jython module?

    Posted Wed February 01, 2012 06:23 PM
    this is handled in websphere in a different way


    • From v7 onwards, scripting libraries are introuduced. Script libraries can be used to perform a higher level of wsadmin functions than can be done using a single wsadmin command. Only a single line from a library function is needed to perform complex functions.

    • Another resource for WebSphere System Administrators for scripting is the wsadminlib.py script library. wsadminlib.py is a large python file containing hundreds of methods to help simplify configuring the WAS using scripting.


     


  • 3.  Is it possible to import WebSphere wsadmin as a jython module?

    Posted Wed February 01, 2012 07:29 PM
    I know of the scripting libraries, but they are not what I was looking for since they must be run using the wsadmin tool.  What I'm looking to do is to be able to import a module into jython, independent of the wsadmin utility, and perform wsadmin like functions, such as checking the status of the a server.

    Lets say I decide to build a webpage to monitor application server status.  It would be great if I can write this in jython and be able to import a module to use to check the status of our WebSphere servers. 

    I could technically use the wsadmin utility to check the status of a WebSphere server (wsadmin.sh -lang jython -f file_name) from within my jython code, but there'd be unnecessary time wasted having to wait for the wsadmin utility to startup.