rmi implementation with java configs