| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.ejb.ESessionBean
com.bankframe.services.sessionmgmt.SessionManagementBean
com.bankframe.services.sessionmgmt.ejb.EJBSessionManagementBean
public class EJBSessionManagementBean
EJB based implementation of Session Management mechanism
| 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 | 
|---|
public static final String JNDI_NAME
| Constructor Detail | 
|---|
public EJBSessionManagementBean()
| Method Detail | 
|---|
public int getNumValidSessions()
                        throws FinderException
getNumValidSessions in class SessionManagementBeanFinderException - on error
public Enumeration getSessions()
                        throws FinderException
getSessions in class SessionManagementBeanFinderException - if an error is encountered retrieving session instances
public int removeAllSessions()
                      throws FinderException
removeAllSessions in class SessionManagementBeanFinderException - if an error occurs
public int removeInvalidSessions()
                          throws FinderException
removeInvalidSessions in class SessionManagementBeanFinderException - if an error occurs while removing invalid sessions
public boolean deleteSessionsForUserId(String userId)
                                throws InvalidSessionException
userId - Id of the session to delete
InvalidSessionException - if the session does not exist| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||