Skip Headers

# Acquiring the Session Manager

Previous

Next

TopLink maintains only one instance of the session manager class. The singleton session manager maintains all the named TopLink sessions at run time. When an application requests a session by name, the session manager retrieves the specified session from the appropriate configuration file.

As Example: Acquiring a Session Manager Instance illustrates, to access the session manager instance, use the `oracle.toplink.tools.sessionmanagement.SessionManager` method `getManager`. You can then use the session manager instance to load TopLink sessions.

Acquiring a Session Manager Instance

    import oracle.toplink.tools.sessionmanagement.SessionManager;
    SessionManager sessionManager = SessionManager.getManager();