va.putVamsasDocument(doc);
va.closeArchive();
sfile.unLock();
- System.exit(0);
log.info("Testing update: ");
{
Lock lock=sfile.getLock();
if (lock==null)
while ((lock=sfile.getLock())==null)
log.info("Waiting for lock.");
- VamsasArchiveReader vreader = new VamsasArchiveReader(lock);
+ // VamsasArchiveReader vreader = new VamsasArchiveReader(lock);
+ VamsasArchiveReader vreader = new VamsasArchiveReader(newf);
+
SimpleDocument sdoc = new SimpleDocument("testing vamsas update");
VamsasDocument finaldoc = sdoc.getVamsasDocument(vreader);
if (finaldoc!=null)