We have build several web service based on .net.
Now we want to create a Uniform UI to manage these kinds of services based on web.
But we want to use java in this system,so we have to create/start/stop iis application in java.
I wonder if this is possible?
There’s a command line tool for managing IIS web applications called appcmd. Furthermore, there are iisreset, net start and net stop.
You can call these command line tools from Java using Runtime.exec or using the ProcessBuilder class. The most likely require elevated privileges. So your Java application will need to run with elevated privileges as well.
I’m not quite sure whether this is already sufficient for your management application. You don’t mention anything about querying the web applications and their state. Wouldn’t that be required as well?