This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Websphere and the fly likes How to work with wsadmin from the java program? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "How to work with wsadmin from the java program?" Watch "How to work with wsadmin from the java program?" New topic
Author

How to work with wsadmin from the java program?

Peter Kovgan
Ranch Hand

Joined: Sep 18, 2003
Posts: 84
How to work with wsadmin from the java program?

I want to invoke wsadmin scripts from the java code.
How to do it?
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
You'd probably want to use Runtime.exec("wsadmin -c ....");
if you really wanted to do this but don't do this. Tie in the the WAS JMX API. You should be able to use mbeans to do what you need.


No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
 
wood burning stoves
 
subject: How to work with wsadmin from the java program?