src/main/java/pityoulish/jrmi/server/Main.java
public final static boolean checkForHostnameProperty()
  {
    final String name = "java.rmi.server.hostname";
    final String value = System.getProperty(name, null);

    final boolean ok = (value != null) && (value.length() > 0);
    if (ok)
     {
       System.out.println(Catalog.REPORT_JRMI_HOSTNAME_1.format
                          (value));
     }
    else
     {
       // Not a fatal problem, still good enough for local development.
       System.out.println(Catalog.REPORT_JRMI_HOSTNAME_PROPERTY_1.format
                          (name));
     }

    return ok;
  }
/**
   * Checks for the system property that specifies the hostname for RMI.
   * If that property is not set, stubs created by this JVM point to
   * some version of localhost and are useless on other machines.
   * This method prints a message to System.out, indicating whether the
   * property is set or not.
   *
   * @return    <code>true</code> if the property is set and not empty,
   *            <code>false</code> otherwise
   */
Checks for the system property that specifies the hostname for RMI.
If that property is not set, stubs created by this JVM point to
some version of localhost and are useless on other machines.
This method prints a message to System.out, indicating whether the
property is set or not.

@return    true if the property is set and not empty,
false otherwise
Checks for the system property that specifies the hostname for RMI . If that property is not set stubs created by this JVM point to some version of localhost and are useless on other machines . This method prints a message to System . out indicating whether the property is set or not . @return true if the property is set and not empty false otherwise
public final static boolean checkForHostnameProperty()
  {
    final String name = "java.rmi.server.hostname";
    final String value = System.getProperty(name, null);
    final boolean ok = (value != null) && (value.length() > 0);
    if (ok)
     {
       System.out.println(Catalog.REPORT_JRMI_HOSTNAME_1.format
                          (value));
     }
    else
     {
       System.out.println(Catalog.REPORT_JRMI_HOSTNAME_PROPERTY_1.format
                          (name));
     }
    return ok;
  }
public final static boolean checkForHostnameProperty ( ) { final String name = "java.rmi.server.hostname" ; final String value = System . getProperty ( name , null ) ; final boolean ok = ( value != null ) && ( value . length ( ) > 0 ) ; if ( ok ) { System . out . println ( Catalog . REPORT_JRMI_HOSTNAME_1 . format ( value ) ) ; } else { System . out . println ( Catalog . REPORT_JRMI_HOSTNAME_PROPERTY_1 . format ( name ) ) ; } return ok ; }
Checks for the system property that specifies the hostname for RMI.
Checks for the system property that specifies the hostname for RMI .
// Not a fatal problem, still good enough for local development.