Exemplo n.º 1
0
  public static Object export(Remote obj) {
    try {
      Exporter remoteMeemExporter = getExporter();

      return remoteMeemExporter.export(obj);
    } catch (ConfigurationException e) {
      e.printStackTrace();
    } catch (ExportException e) {
      e.printStackTrace();
    }

    return null;
  }
Exemplo n.º 2
0
 public Remote export() throws Exception {
   Exporter exp =
       new BasicJeriExporter(TcpServerEndpoint.getInstance(0), new BasicILFactory(), true, true);
   return exp.export(this);
 }