com.bankframe.ejb
Class ESessionBean

java.lang.Object
  extended by com.bankframe.ejb.ESessionBean
All Implemented Interfaces:
ESession, Serializable, EnterpriseBean, SessionBean
Direct Known Subclasses:
AccessControlBean, AuthenticationBean, GroupAdministrationBean, PassThroughBean, PingBean, RequestRouterBean, RouteAdministrationBean, SendMailBean, SessionManagementBean, UserAdministrationBean

public abstract class ESessionBean
extends Object
implements SessionBean, ESession

This class is the superclass to all BankFrame session EJBs

See Also:
Serialized Form

Constructor Summary
ESessionBean()
           
 
Method Summary
 void audit(String userId, String functionalArea, String actionCarriedOut, String forwardedToUserId, String description)
          This method creates an audit record.
 void ejbActivate()
          This method activates the EJB.
 void ejbCreate()
          This method creates the EJB.
 void ejbLoad()
          This method loads the EJB.
 void ejbPassivate()
          This method passivates the EJB.
 void ejbPostCreate()
          This method post-creates the EJB.
 void ejbRemove()
          This method removes the EJB.
 void ejbStore()
          This method stores the EJB.
 SessionContext getSessionContext()
          This method gets the session context of this session bean.
abstract  Vector processDataPacket(DataPacket data)
          This method processes a DataPacket.
 Vector processDataPackets(Vector dataPackets)
          This method processes a vector of DataPackets
 void setSessionContext(SessionContext ctx)
          This method set the session context.
 void unsetSessionContext()
          This method sets the session context to null
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESessionBean

public ESessionBean()
Method Detail

audit

public void audit(String userId,
                  String functionalArea,
                  String actionCarriedOut,
                  String forwardedToUserId,
                  String description)
           throws UnsupportedOperationException
This method creates an audit record.

Parameters:
userId - User ID
functionalArea - Functional Area
actionCarriedOut - Action Carried Out
forwardedToUserId - Forwarded To User Id
description - Description
Throws:
ProcessingErrorException - if an error occurs during processing
UnsupportedOperationException

ejbActivate

public void ejbActivate()
This method activates the EJB.

Specified by:
ejbActivate in interface SessionBean

ejbCreate

public void ejbCreate()
This method creates the EJB.


ejbLoad

public void ejbLoad()
This method loads the EJB.


ejbPassivate

public void ejbPassivate()
This method passivates the EJB.

Specified by:
ejbPassivate in interface SessionBean

ejbPostCreate

public void ejbPostCreate()
This method post-creates the EJB.


ejbRemove

public void ejbRemove()
This method removes the EJB.

Specified by:
ejbRemove in interface SessionBean

ejbStore

public void ejbStore()
This method stores the EJB.


getSessionContext

public SessionContext getSessionContext()
This method gets the session context of this session bean.

Returns:
the session context

processDataPacket

public abstract Vector processDataPacket(DataPacket data)
                                  throws ProcessingErrorException,
                                         RemoteException
This method processes a DataPacket. This method must be implemented by all BankFrame session beans.

Specified by:
processDataPacket in interface ESession
Parameters:
data - The DataPacket to process.
Returns:
A vector containing one or more response DataPackets.
Throws:
ProcessingErrorException
RemoteException

processDataPackets

public Vector processDataPackets(Vector dataPackets)
                          throws ProcessingErrorException,
                                 RemoteException
This method processes a vector of DataPackets

Specified by:
processDataPackets in interface ESession
Parameters:
dataPackets - a vector of DataPackets.
Returns:
a vector containing one or more response DataPackets.
Throws:
ProcessingError - exception if the request cannot be processed.
RemoteExcpetion
ProcessingErrorException - if the request cannot be processed
RemoteException

setSessionContext

public void setSessionContext(SessionContext ctx)
This method set the session context.

Specified by:
setSessionContext in interface SessionBean
Parameters:
ctx - the new session context

unsetSessionContext

public void unsetSessionContext()
                         throws RemoteException
This method sets the session context to null

Throws:
RemoteException.
RemoteException


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