A simple example of communication between java processes