Script:
Owner:
Subdir:
Blog ID: 75809171
Group ID: User ID:

Top Point Earners Today

    Online Community Coordinator
    Wellesley Information Services
    Points: 240
    ColdFusion/WebSphere Admininstrator
    AES/PHEAA
    Points: 160
 
WebSphere Product WebSphere Applicat.. Is it possible to import WebSphere wsadmin as a...
Select Forum or Category:
Post Reply
Is it possible to import WebSphere wsadmin as a jython module?
4 months ago  ::  Jan 31, 2012 - 7:10PM #1
md
Sr. Programmer Analyst
Verizon Wireless
Posts: 10

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?


0 (0 Ratings)
4 months ago  ::  Feb 01, 2012 - 5:23PM #2
Joseph
WebSphere Platform Technology Consultant
Consulting Ltd
Posts: 130
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.

 
0 (0 Ratings)
4 months ago  ::  Feb 01, 2012 - 6:29PM #3
md
Sr. Programmer Analyst
Verizon Wireless
Posts: 10
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.

0 (0 Ratings)
Post Reply
    Viewing this thread :: 0 registered and 1 guest
    No registered users viewing

Tag Cloud

Leader Spotlight

    Loading...