This is a simple example to test rmi functionalities with docker containers
The code is inspired by this post by Nikos Maravitsas link
mvn clean install
docker-compose up -d
You should be able to see two containers RMI_SERVER and RMI_CLIENT with the following logs:
- 15:35:53.639 [main] INFO com.javacodegeeks.core.rmi.remoteserver.RemoteServer - Bindid id:RMI_EXAMPLE port:8888
- 15:35:54.362 [main] INFO com.javacodegeeks.core.rmi.remoteclient.RemoteClient - RMI returns:JAVACODEGEEKS ROCK!