This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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!