src/main/java/pityoulish/jrmi/outlet/LocalOutletFactoryImpl.java
public DirectMessageOutlet openLocalOutlet()
    throws Exception
  {
    checkForHostnameProperty();

    DirectMessageOutletImpl dmoi = null;
    DirectMessageOutlet     stub = null;

    // PYL:keep
    Missing.here("create a local outlet and export it");
    // Exporting is implemented by subclasses of java.rmi.server.RemoteServer.
    // You'll need a typecast:  stub = (DirectMessageOutlet) ...whatever...
    // To get around a StubNotFoundException, use a different export method.
    // PYL:cut
    dmoi = new DirectMessageOutletImpl();
    stub = (DirectMessageOutlet) UnicastRemoteObject.exportObject(dmoi, 0);
    // PYL:end

    System.out.println(Catalog.REPORT_OPEN_OUTLET_1.format(dmoi));
    System.out.println(Catalog.REPORT_OPEN_STUB_1.format(stub));

    return dmoi;
  }
// non-javadoc, see interface LocalOutletFactory
non-javadoc, see interface LocalOutletFactory
non - javadoc see interface LocalOutletFactory
public DirectMessageOutlet openLocalOutlet()
    throws Exception
  {
    checkForHostnameProperty();
    DirectMessageOutletImpl dmoi = null;
    DirectMessageOutlet     stub = null;
    Missing.here("create a local outlet and export it");
    dmoi = new DirectMessageOutletImpl();
    stub = (DirectMessageOutlet) UnicastRemoteObject.exportObject(dmoi, 0);
    System.out.println(Catalog.REPORT_OPEN_OUTLET_1.format(dmoi));
    System.out.println(Catalog.REPORT_OPEN_STUB_1.format(stub));
    return dmoi;
  }
public DirectMessageOutlet openLocalOutlet ( ) throws Exception { checkForHostnameProperty ( ) ; DirectMessageOutletImpl dmoi = null ; DirectMessageOutlet stub = null ; Missing . here ( "create a local outlet and export it" ) ; dmoi = new DirectMessageOutletImpl ( ) ; stub = ( DirectMessageOutlet ) UnicastRemoteObject . exportObject ( dmoi , 0 ) ; System . out . println ( Catalog . REPORT_OPEN_OUTLET_1 . format ( dmoi ) ) ; System . out . println ( Catalog . REPORT_OPEN_STUB_1 . format ( stub ) ) ; return dmoi ; }
non-javadoc, see interface LocalOutletFactory
non - javadoc see interface LocalOutletFactory
// PYL:keep // Exporting is implemented by subclasses of java.rmi.server.RemoteServer. // You'll need a typecast:  stub = (DirectMessageOutlet) ...whatever... // To get around a StubNotFoundException, use a different export method. // PYL:cut // PYL:end