com.bankframe.services.requestrouter
Class RequestRouterBean

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

public class RequestRouterBean
extends ESessionBean

This class contains all BankFrame MCA's logic for routing requests to EJBs.

See Also:
Serialized Form

Constructor Summary
RequestRouterBean()
          Default constructor.
 
Method Summary
 void ejbCreate()
          This method initialises the RequestRouterBean.
 Vector processDataPacket(DataPacket dataPacket)
          This method is called whenever a DataPacket needs to be routed to a BankFrame EJB.
 Vector processDataPackets(Vector request)
          This method is called whenever request need to be routed to a BankFrame EJB.
 
Methods inherited from class com.bankframe.ejb.ESessionBean
audit, ejbActivate, ejbLoad, ejbPassivate, ejbPostCreate, ejbRemove, ejbStore, getSessionContext, setSessionContext, unsetSessionContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestRouterBean

public RequestRouterBean()
                  throws RequestRouterException
Default constructor.

Throws:
RequestRouterException
Method Detail

ejbCreate

public void ejbCreate()
This method initialises the RequestRouterBean.

Overrides:
ejbCreate in class ESessionBean

processDataPacket

public Vector processDataPacket(DataPacket dataPacket)
                         throws RemoteException,
                                ProcessingErrorException
This method is called whenever a DataPacket needs to be routed to a BankFrame EJB.

Specified by:
processDataPacket in interface ESession
Specified by:
processDataPacket in class ESessionBean
Parameters:
dataPacket - DataPacket to be routed to the EJB
Returns:
a vector containing the reponse data from the EJB
Throws:
ProcessingErrorException - if there is a problem in delivering the DataPacket
RemoteException

processDataPackets

public Vector processDataPackets(Vector request)
                          throws ProcessingErrorException
This method is called whenever request need to be routed to a BankFrame EJB.

Specified by:
processDataPackets in interface ESession
Overrides:
processDataPackets in class ESessionBean
Parameters:
request - the request to be routed to the EJB
Returns:
a vector containing the reponse data from the EJB
Throws:
ProcessingErrorException - if there is a problem in delivering the DataPacket


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