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; }
public Remote export() throws Exception { Exporter exp = new BasicJeriExporter(TcpServerEndpoint.getInstance(0), new BasicILFactory(), true, true); return exp.export(this); }