How to use Java applet to get/restart the services running on a server?
I have a Java Applet that uses LDAP to get a lis开发者_如何学Pythont of all the servers on Active Directory. The Applet puts all of the servers into a drop down list.
The next step is to select one of these servers and then display a list of all the services running on that server. Is there a way of getting all of the services running on a server?
The final goal is to be able to restart a service from the Applet. Is this possible? And if so, what is the best approach?
Thanks
I suggest you should research the feasibility of the final goal first, rather than the user interface. It isn't implementable without a service in the server that can listen to the applet and start the specified service. Compared to that, the applet side is pretty trivial. I strongly suspect what you want isn't feasible, for example in Windows where many servers are services that are controlled via the Control Panel->Services or the NET START command run with admin privilege.
精彩评论