The 10 minutes “Getting started with RMI” tutorial
Since Java 5 working with RMI (Remote Method Invocation) is very easy. You don’t need the rmic compiler unless you work with legacy RMI clients. Now stubs are generated automatically at runtime. Let’s see a very minimalistic example.
Our scenario will have a server sharing an object via RMI and a client calling the shared instance.




