• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Opening & closing remote application using java

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's called Node Manager
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic