• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

RMI/CORBA  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am having Client program and server program in RMI
I don't want to start rmiregistry on the server,it should be incorporated in the Server prog only
Could u please help me how to incorporate that in the server
prog which is given below what else to be added to the server prog or any where like to(interface prog,Implementation prog,client prog )
import java.rmi.*;
import java.io.*;
public class Server implements Serializable
{
public static void main(String s[]) throws Exception
{
MyFind f=new MyFindImpl();
Naming.rebind("vvv",f);
System.out.println("Server is ready");
}
}
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe you are looking for something like this....
Registry reg = java.rmi.registry.LocateRegistry.createRegistry(port);
MyFind f=new MyFindImpl();
java.rmi.Naming.rebind("vvv",f);
I found this bit of code here. http://developer.java.sun.com/developer/technicalArticles/RMI/rmi/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!