com.bankframe.services.sessionmgmt.ejb
Class EJBSessionManagementBean

java.lang.Object
  extended by com.bankframe.ejb.ESessionBean
      extended by com.bankframe.services.sessionmgmt.SessionManagementBean
          extended by com.bankframe.services.sessionmgmt.ejb.EJBSessionManagementBean
All Implemented Interfaces:
ESession, Serializable, EnterpriseBean, SessionBean

public class EJBSessionManagementBean
extends SessionManagementBean

EJB based implementation of Session Management mechanism

See Also:
Serialized Form

Field Summary
static String JNDI_NAME
           
 
Constructor Summary
EJBSessionManagementBean()
           
 
Method Summary
 boolean deleteSessionsForUserId(String userId)
          delete the BankFrameSessions for a userId
 int getNumValidSessions()
          Get the number of valid sessions
 Enumeration getSessions()
          Get all current valid sessions
 int removeAllSessions()
          Remove all Sessions, effectively logging off all users on the system
 int removeInvalidSessions()
          Remove all Invalid Sessions
 
Methods inherited from class com.bankframe.services.sessionmgmt.SessionManagementBean
getSession, isValidSession, logoff, logon, processDataPacket
 
Methods inherited from class com.bankframe.ejb.ESessionBean
audit, ejbActivate, ejbCreate, ejbLoad, ejbPassivate, ejbPostCreate, ejbRemove, ejbStore, getSessionContext, processDataPackets, setSessionContext, unsetSessionContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JNDI_NAME

public static final String JNDI_NAME
Constructor Detail

EJBSessionManagementBean

public EJBSessionManagementBean()
Method Detail

getNumValidSessions

public int getNumValidSessions()
                        throws FinderException
Get the number of valid sessions

Specified by:
getNumValidSessions in class SessionManagementBean
Returns:
Number of valid sessions currently logged on
Throws:
FinderException - on error

getSessions

public Enumeration getSessions()
                        throws FinderException
Get all current valid sessions

Specified by:
getSessions in class SessionManagementBean
Returns:
Enumeration containing all valid session instances
Throws:
FinderException - if an error is encountered retrieving session instances

removeAllSessions

public int removeAllSessions()
                      throws FinderException
Remove all Sessions, effectively logging off all users on the system

Specified by:
removeAllSessions in class SessionManagementBean
Returns:
Number of sessions removed
Throws:
FinderException - if an error occurs

removeInvalidSessions

public int removeInvalidSessions()
                          throws FinderException
Remove all Invalid Sessions

Specified by:
removeInvalidSessions in class SessionManagementBean
Returns:
Number of sessions removed
Throws:
FinderException - if an error occurs while removing invalid sessions

deleteSessionsForUserId

public boolean deleteSessionsForUserId(String userId)
                                throws InvalidSessionException
delete the BankFrameSessions for a userId

Parameters:
userId - Id of the session to delete
Returns:
forcedFlag if one or more userSessions were forced off
Throws:
InvalidSessionException - if the session does not exist


Copyright © 2005, 2007, Oracle. All rights reserved.