Skip to content

Instantly share code, notes, and snippets.

@chtitux
Created April 12, 2011 13:21
Show Gist options
  • Save chtitux/915487 to your computer and use it in GitHub Desktop.
Save chtitux/915487 to your computer and use it in GitHub Desktop.
Start Server:
if (System.getSecurityManager() == null)
System.setSecurityManager ( new RMISecurityManager() );
LocateRegistry.createRegistry(9000);
// ...
// ... and bind it with the RMI Registry
Naming.rebind ("rmi://<ip>:9000/server1", ...);
// pour Reader/Writer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment