|
4 months ago ::
Jan 31, 2012 - 7:10PM
#1
|
md
Sr. Programmer Analyst
Verizon Wireless
|
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?
|
|
4 months ago ::
Feb 01, 2012 - 5:23PM
#2
|
Joseph
WebSphere Platform Technology Consultant
Consulting Ltd
|
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.
|
|
4 months ago ::
Feb 01, 2012 - 6:29PM
#3
|
md
Sr. Programmer Analyst
Verizon Wireless
|
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.
|