I can get a list of instlled applications but how do I get the status using Jython?
相关问题
- How Does WebSphere Choose the Classloading Order i
- Unable to start application on websphere 8.5, but
- Dynamic languages - which one should I choose?
- How to execute Python script from Java code in And
- Where in the world is com.ibm.ws.scripting.adminCo
相关文章
- @Singleton @Startup @PostConstruct method guarante
- Why does this Jython loop fail after a single run?
- Getting Websphere v7.0 Running with eclipse seems
- Appending values to a key if key already exists (p
- Worklight 6.0 WL development Server not starting
- Running HtmlUnit with Jython - issue with startup
- Android Session getting lost in IBM Websphere Serv
- How to set IBM Websphere 8 to serve web applicatio
Here is what I use based on Snehan's answer.
Sample output
There is some more modification required in Matthieu, Cormier's script.
Here we go.
It will work in any line separator. Generally AdminApp.list() will use "\" as the line seperator
The following IBM documentation should help:
WAS InfoCenter: Querying the application state using wsadmin scripting
IBM Technote: Listing enterprise application status using wsadmin script
To summarize, if the application is running on an application server, an
Application
MBean will be registered. In order to determine if the application is running, you can query for the presence of these MBeans.I dont think there is any direct method to get the application running status, You can get the object from the AdminControl using the following code
If
serverstatus
returns null, then the application is not running, if the application is running then the details of the applications would be printed.