code: public static void main(String[] args) {
          try {
              RmiJournalReceiverArguments arguments =
                      new RmiJournalReceiverArguments(args);
              RmiJournalReceiver receiver = new RmiJournalReceiver(arguments);
              receiver.exportAndBind();
              while (true) {
                  Thread.sleep(60000);
              }
          } catch (IllegalArgumentException e) {
              System.out.println("RmiJournalReciever failed: " + e.getMessage());
          } catch (Exception e) {
              System.out.println("RmiJournalReciever failed: ");
              e.printStackTrace();
          }
      }
docs: Main routine: create the receiver from the arguments, and bind the
  receiver in the registry.