An implementation based on java.rmi.activation.Activatable. Main method creates an instance and registers it to the activation system and RMI registry. If there is no local registry, default one is created.