Misc,

Method and system for providing a single object instance per client-server session

, and .
(September 2006)US Patent 7,107,575.

Abstract

A session singleton object, design pattern, and method for providing computer program code that defines a class for instantiating a session singleton object are disclosed. The class includes a constructor for instantiating the session singleton object, and an access method for accessing the session singleton object. The access method has an input parameter, which is used to locate a session, logic for determining whether the session singleton object exists, logic for creating the session singleton object, and associating the session singleton object with the session only when the session singleton object does not exist, and logic for returning the session singleton to a caller of the access method. Executing the code in a server that is coupled to clients in respective communication sessions results in instantiating one and only one instance of the session singleton object for each of the sessions communicating with the server.

Tags

Users

  • @yish

Comments and Reviews