To start a server remotely from RMI
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   chaten_jini
Posted On:   Thursday, August 3, 2006 08:09 AM

hi all

I have to start servers remotely from RMI.
How to go about it .





Regards


-chaten

Re: To start a server remotely from RMI

Posted By:   Anonymous  
Posted On:   Saturday, August 26, 2006 07:29 AM

Hi Chetan,
If u want to invoke server from the client through RMI then tha below code will help u...make changes according to u..

import java.rmi.*;

public class MyServer {

public static void main(String[] args) {
System.setSecurityManager(new RMISecurityManager());
try {
RemoteClockImpl clock = new RemoteClockImpl();
Naming.rebind("IRFANSHK", clock);
System.out.println("Server is Waiting...");
} catch (Exception exc) {
exc.printStackTrace();
System.exit(1);
}
}
}

Re: To start a server remotely from RMI

Posted By:   Anonymous  
Posted On:   Thursday, August 3, 2006 09:57 AM

Use ant to do it....Ant has many ant tasks and specially a lot for weblogic,iplanet etc....For Sun App Server use asant tasks...
About | Sitemap | Contact