From 694560809e5f1cc19fa1f76e2294e8d3c78fd2fa Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 28 Jun 2007 14:38:55 +0000 Subject: [PATCH] raise the DOCUMENT_REQUESTTOCLOSE event and debug output. 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uk/ac/vamsas/client/simpleclient/VamsasSession.java b/src/uk/ac/vamsas/client/simpleclient/VamsasSession.java index 58f442a..b24ef68 100644 --- a/src/uk/ac/vamsas/client/simpleclient/VamsasSession.java +++ b/src/uk/ac/vamsas/client/simpleclient/VamsasSession.java @@ -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()); -- 1.7.10.2