I want to control the services which will be run on remote machine.. actually i has to do that a form contains one list box which contains the network machine names in your network . if u click on that machinenames it should list all service ( which will be shown on the task manager in windows) eg. telnet, rpc, any application service..etc... how can i do it?. otherwise give the code for stopping and starting the service for the pc.
All the major application servers -- Weblogic, Websphere, JBoss -- contains a JMX container which you can monitor remotely. For Tomcat, it is optional, but it is possible too. All of these has mbeans that will let you monitor, and control its services remotely. That is the good news.
The bad news? Windows does not provide an independant JMX container. Same is true for Solaris and Linux. Currently, there are no JMX containers running at the OS level -- that I know of. The best you can do at this point is probably install some sort of SNMP agent on the OS, and contact that through Java.
Alternatively, you can also install an application server which has a JMX container on it, but then, all mbeans are specific to the application server. You will still need to obtain or write mbeans that can monitor the local operating system.
In other words, JMX may both be an overkill, and useless for what you are trying to accomplish.
Joined: Jan 31, 2006
ok but my one my friend told that u can do with NET START and NET STOP command. i dont know how to apply it.
Originally posted by vinayaga moorthi: ok but my one my friend told that u can do with NET START and NET STOP command. i dont know how to apply it.
NET START/STOP are simply commands executed from the command line of a local windows machine to affect a remote windows machine. You can do the same thing (execute those commands) from Java, via the Runtime.getRuntime().exec() method.
Joined: Jan 31, 2006
i am new to java. i know only core java. now only i learn java by myself. so please send me the sample coding for that NETSTART/STOP. please