Oracle Application Server TopLink API Reference
10g (9.0.4)

B10491-01

oracle.toplink.ejb
Class SessionManager

java.lang.Object
  |
  +--oracle.toplink.ejb.SessionManager

Deprecated.

 Please use oracle.toplink.tools.sessionmanagement.SessionManager

public class SessionManager
extends java.lang.Object

Purpose: Global session location.

Description: This allows for a global session local which can be accessed globally from other classes. This is needed for EJB data stores as they must have a globally accessible place to access the session. This can be by EJB session beans, BMP beans and CMP beans as well as Servlets and other three-tier services.

Responsibilities:



Since:
TOPLink/Java 3.0

Constructor Summary
SessionManager()
          Deprecated. PUBLIC: The default constructor to create a new session manager.

 

Method Summary
 Session getDefaultSession()
          Deprecated. PUBLIC: Return the default session.
static SessionManager getManager()
          Deprecated. PUBLIC: Return the singleton session manager.
 oracle.toplink.publicinterface.Session getSession(java.lang.String sessionName)
          Deprecated. PUBLIC: Return the session by name.
 oracle.toplink.publicinterface.Session getSession(java.lang.String sessionName, java.lang.Class objectClass)
          Deprecated. PUBLIC: Return the session by name, specifying the class whose classloader you wish to use.
 oracle.toplink.publicinterface.Session getSession(java.lang.String sessionName, java.lang.Object objectBean)
          Deprecated. PUBLIC: Return the session by name, using the classloader of the Object specified.
 void setDefaultSession(Session defaultSession)
          Deprecated. PUBLIC: Set the default session.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

SessionManager

public SessionManager()
Deprecated. 
PUBLIC: The default constructor to create a new session manager.
Method Detail

getDefaultSession

public Session getDefaultSession()
Deprecated. 
PUBLIC: Return the default session. The session configuration is stored in a TopLink.properties file in a directory on your classpath. Other sessions are supported through the getSession by name API.

getManager

public static SessionManager getManager()
Deprecated. 
PUBLIC: Return the singleton session manager. This allow global access to a set of named sessions.

getSession

public oracle.toplink.publicinterface.Session getSession(java.lang.String sessionName,
                                                         java.lang.Object objectBean)
Deprecated. 
PUBLIC: Return the session by name, using the classloader of the Object specified.

getSession

public oracle.toplink.publicinterface.Session getSession(java.lang.String sessionName)
Deprecated. 
PUBLIC: Return the session by name. Use the ConversionManager's classLoader.

getSession

public oracle.toplink.publicinterface.Session getSession(java.lang.String sessionName,
                                                         java.lang.Class objectClass)
Deprecated. 
PUBLIC: Return the session by name, specifying the class whose classloader you wish to use.

setDefaultSession

public void setDefaultSession(Session defaultSession)
Deprecated. 
PUBLIC: Set the default session. If not set the session configuration is stored in a TopLink.properties file in a TopLink directory on your classpath. Other sessions are supported through the getSession by name API.

Copyright © 2003 Oracle Corporation. All Rights Reserved.