• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 2592 for trunk/components/blitz/src/ome/services/blitz/impl/ServiceFactoryI.java

Show
Ignore:
Timestamp:
07/05/08 22:16:04 (5 months ago)
Author:
jmoore
Message:

ticket:1018 - Initial version of OmeroSessions reference counting

Implementation is incomplete in the blitz case since there are two
possible "closers" - the user and the glacier session, which must
be taken into account.

Files:
1 modified

  • trunk/components/blitz/src/ome/services/blitz/impl/ServiceFactoryI.java (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • trunk/components/blitz/src/ome/services/blitz/impl/ServiceFactoryI.java

    r2397 r2592  
    524524    } 
    525525 
     526    /** 
     527     * Destruction simply decrements the reference count for a session to allow 
     528     * reconnecting to it. This means that the Glacier timeout property is 
     529     * fairly unimportant. If a Glacier connection times out or is otherwise 
     530     * destroyed, a client can attempt to reconnect 
     531     */ 
    526532    public void destroy(Ice.Current current) { 
    527         if (log.isInfoEnabled()) { 
    528             log.info(String.format("Destroying %s session", current.id.name)); 
    529         } 
    530         close(current); 
     533        sessionManager.detach(this.principal.getName()); 
    531534    } 
    532535 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/