The Artima Developer Community
Sponsored Link

Java Answers Forum
How to invoke a java program ( service ) which resides at Remote machine?

2 replies on 1 page. Most recent reply: Sep 1, 2003 8:04 AM by Senthoorkumaran Punniamoorthy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
venkat

Posts: 4
Nickname: javaven
Registered: Aug, 2003

How to invoke a java program ( service ) which resides at Remote machine? Posted: Sep 1, 2003 6:32 AM
Reply to this message Reply
Advertisement
Is it possible to invoke a service ( java program ) which is residing in remote machine. In my application , the service is a rmiserver . I need to start the rmiserver program programmatically, insted of going to that remote machine and run rmiserver program manually. If it's possible, can u please share your views how to implement that functionality.

Thanks in advance.


David

Posts: 150
Nickname: archangel
Registered: Jul, 2003

Re: How to invoke a java program ( service ) which resides at Remote machine? Posted: Sep 1, 2003 7:42 AM
Reply to this message Reply
If it's a service, won't it already be running?

Whatever you do, you've got to have some program on the remote machine already running to invoke the other program.

Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: How to invoke a java program ( service ) which resides at Remote machine? Posted: Sep 1, 2003 8:04 AM
Reply to this message Reply
David has a point.

One suggestion would be start the RMI server and the registry automatically when the machine starts up. In windows you can make the Java program a Service (again :o) which starts up when the machine comes up. In Unix or Linux based system I guess you can put it on the cron daemon. To make a Java program a Windows service there are utilities available. If you google you will find some of them.

Another way you could start up the RMI server and the Registry without going to the remote machine physically is to login through telnet.

Flat View: This topic has 2 replies on 1 page
Topic: array index out of bounds Previous Topic   Next Topic Topic: creating XML child elements

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use