raise the DOCUMENT_REQUESTTOCLOSE event and debug output.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 28 Jun 2007 14:38:55 +0000 (14:38 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 28 Jun 2007 14:38:55 +0000 (14:38 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@415 be28352e-c001-0410-b1a7-c7978e42abec

src/uk/ac/vamsas/client/simpleclient/VamsasSession.java

index 58f442a..b24ef68 100644 (file)
@@ -491,6 +491,9 @@ public class VamsasSession {
       
       if ( this.isLastActiveClient(client))
         {
+        log.debug("Raising request-to-save event");
+        client.evgen._raise(Events.DOCUMENT_REQUESTTOCLOSE, null, client, null);
+        //client.evgen._raise(Events.SESSION_SHUTDOWN, null, client.getSessionHandle(), null);
         log.debug("Last active client: closing session");
         log.info("Closing session");
           getSessionManager().removeSession(client.getSessionHandle());