Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Сервер:
- final int PORT = 1099;
- try {
- Registry registry = LocateRegistry.createRegistry(PORT);
- } catch (RemoteException e) {
- e.printStackTrace();
- }
- try {
- Registry registry = LocateRegistry.getRegistry(1099);
- Stub stub = new StubImpl();
- UnicastRemoteObject.exportObject(stub, 1099);
- } catch (RemoteException e) {
- e.printStackTrace();
- }
Add Comment
Please, Sign In to add comment