-
-
Save jsmpereira/ffaea21e7de730165da6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;; Java Server | |
; | |
; RMIConnection rc = new RMIConnectionImpl(this); | |
; Registry r = LocateRegistry.createRegistry(6060); | |
; r.rebind("rmi://localhost/rmiconnect", rc); | |
;;;; Clojure client | |
; One way | |
(def rmiconnect (doto (java.rmi.registry.LocateRegistry/getRegistry 6060) | |
(.lookup "rmiconnect"))) | |
; Other way | |
(def rmi-registry (java.rmi.registry.LocateRegistry/getRegistry 6060)) | |
(let [rmiconnect (.lookup rmi-registry "rmiconnect")]) | |
; I get 'java.rmi.NotBoundException: rmiconnect' in both cases | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment