This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Websphere
Reply 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?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to work with wsadmin from the java program?
 
Similar Threads
WsAnt task -- Please specify a different location with -tracefile option.
Problem in migration from WAS4 to WAS5.1
ANT Task problem for Websphere
AppDeploymentException: []
WAS 7 Please specify a different location with -tracefile option.