Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Feb 25th, 2018 56 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. Registry registry = LocateRegistry.getRegistry("localhost", 11701);
  2.    
  3. try { // подключение к серверу
  4.     Registry registry = LocateRegistry.getRegistry("localhost", 11701);
  5.     service = (IRemoteServer) registry.lookup("remiss");
  6. } catch (Exception e) {
  7.     e.printStackTrace();
  8. }
  9.  
  10. try { // вызов функции
  11.     status = service.tryJoin("login","password");
  12. } catch (Exception e) {
  13.     e.printStackTrace();
  14.     status = "fail";
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top