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.
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.