I am in bit trouble, i want to open & close the application which is running on different machine in intranet. Is it possible to do so using java technology? If so pleae any one help me out and if possible please give the code also.
If by "open & close" you mean start & stop - then yes. Check out Runtime.exec() and any tutorial on RMI.
Joined: May 10, 2001
Originally posted by Vin Kris: If by "open & close" you mean start & stop - then yes. Check out Runtime.exec() and any tutorial on RMI.
Yes you got the same, let me clear the situation so that you can help me more if possible for you. Actually I am in intranet my machine is far away from the weblogic server, i need to restart the wlserver again & again. so I thought let me write a program which will start & close the wlserver from my machine without going to remote machine(wlserver). Is this possible, if yes please help me out. And thank for your advice i am looking into that. thanks & regards Dkumar
Yeah, what you will need to do is write an application on the WebLogic Server that uses Runtime.exec() to execute the start and stop appropraitly. Then write a program on your computer that uses RMI to remotely invoke the method on server that executes the Runtime.exec(). See here - RMI Tutorial
I have never worked on weblogic but I think this feature should be provided by weblogic - accessing the administrative console (or the equivalent) through the intranet. For your solution - you'd need to have a java RMI application running constantly on your server - you might get some resistance from your system administrators. otherwise, it is quite simple to implement this. If it is a windows server, There is also the option of installing a tool (forgot the name) by which you see the monitor of your server and also work on it from your m/c.