wood burning stoves 2.0*
The moose likes Java in General and the fly likes Opening & closing remote application using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Opening & closing remote application using java" Watch "Opening & closing remote application using java" New topic
Author

Opening & closing remote application using java

dkumar sharma
Greenhorn

Joined: May 10, 2001
Posts: 17
Hi All,

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.

Thanks in advance
DKumar
Vin Kris
Ranch Hand

Joined: Jun 17, 2002
Posts: 154
If by "open & close" you mean start & stop - then yes. Check out Runtime.exec() and any tutorial on RMI.
dkumar sharma
Greenhorn

Joined: May 10, 2001
Posts: 17
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
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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


GenRocket - Experts at Building Test Data
Vin Kris
Ranch Hand

Joined: Jun 17, 2002
Posts: 154
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.
Dave Landers
Ranch Hand

Joined: Jul 24, 2002
Posts: 401
It's called Node Manager
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Opening & closing remote application using java