org.clazzes.remoting.beans
Interface SessionManager


public interface SessionManager

An implementation of this class maintains a server-side hibernate session, which are associated to client session IDs.

Author:
wglas

Method Summary
 void closeSession(java.rmi.server.UID sessionId)
          Close a session and withdraw it from the current thread.
 void openSession(java.rmi.server.UID sessionId, java.util.Map<java.lang.String,java.lang.Object> metadata)
          Open a session and attach it to the current thread.
 

Method Detail

openSession

void openSession(java.rmi.server.UID sessionId,
                 java.util.Map<java.lang.String,java.lang.Object> metadata)
                 throws java.lang.SecurityException
Open a session and attach it to the current thread.

Parameters:
sessionId - The client sessionId for which to open a session.
metadata - The request metadata as generated by SessionAuthenticator or by
Throws:
java.lang.SecurityException - Upon authentication errors.

closeSession

void closeSession(java.rmi.server.UID sessionId)
Close a session and withdraw it from the current thread.

Parameters:
sessionId - The client sessionId of which to close a session previously created by #openSession(String).


Copyright © 2010. All Rights Reserved.