Click to See Complete Forum and Search --> : Java RMI (Desperate)


buju
12-07-2002, 06:14 PM
I need some quick help, I am changing a program from using sockets to using RMI. How can I accept a connection from a client to assign to a thread. I don't think I explained it well so here's what I am using currently with sockets. I'm new to Java.

private ServerSocket server;
private Socket userA, userB;


server = new ServerSocket(3012);
userA = server.accept(); //How do I to do this with RMI (confused)
userB = server.accept();


The program works fine with the sockets, but I'm unsure how to accept a connection from a client to be assigned to a thread.

majidpics
12-10-2002, 07:49 AM
its not the way you are doing, in rmi there are two thing are stub and skeleton concept like in corba, you need to study more about rmi, also see the java.rmi.* API's and its documentation.

PhatBarren
12-10-2002, 09:31 PM
You may be able to get better help for java issues at:

http://developer.java.sun.com/servlet/SessionServlet?url=/developer/

Cheers,