Uuid id = UuidFactory.generate();
//Create a BasicJeriExport instance using the ServerEndoint and Uuid
//instances created above
log.finest("Creating BasicJeriExporter with " + ep + ", EnableDGC=true"
+ " , keepAlive=true, " + id);
BasicJeriExporter exporter =
new BasicJeriExporter(ep,new BJETestILFactory(),true,true,id);
//Export the remote object
try {
log.finest("Exporting " + exportee);
exporter.export(exportee);
} catch (ExportException e) {
log.finer("Unexpected exception thrown while exporting service"
+ " " + e.getMessage());
throw new TestException("Unsexpected ExportException"
+ " when exporting test service", e);
}
//Create a second BasicJeriExporter with the same Uuid and
//ServerEnpoint
log.finest("Creating second BasicJeriExporter with " + ep +
", EnableDGC=true , keepAlive=true, " + id);
BasicJeriExporter secondExporter =
new BasicJeriExporter(ep, new BJETestILFactory() ,true,true,id);
//Export the remote object using the second exporter
try {
log.finest("Attempting second export using the same object, Uuid,"
+ " and ServerEnpoint");
secondExporter.export(exportee);
throw new TestException("An export exception was"
+ " not thrown when attempting to export the same object"
+ " twice with the same ServerEnpoint and Uuid");
} catch (ExportException e) {
//Verify that an export exception is thrown