Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Opening & closing remote application using java

 
dkumar sharma
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If by "open & close" you mean start & stop - then yes. Check out Runtime.exec() and any tutorial on RMI.
 
dkumar sharma
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Vin Kris
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's called Node Manager
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic