com.bankframe.services.route
Class RouteBean

java.lang.Object
  extended bycom.bankframe.ejb.EEntityBean
      extended bycom.bankframe.services.route.RouteBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

public class RouteBean
extends EEntityBean

The RouteBean handles all route of client requests (that arrive in the form of a DataPacket with a specified REQUEST_ID) to the appropriate EJB Services that are deployed within BankFrame on an EJB Server. It uses JNDI and a Route database table to map REQUEST_ID values to the name of a deployed Banking Service.

See Also:
Serialized Form

Field Summary
 java.lang.String description
           
 java.lang.String jndiName
           
 java.lang.String requestId
           
 java.lang.String sessionManaged
           
 
Constructor Summary
RouteBean()
           
 
Method Summary
 RoutePK ejbCreate(java.lang.String requestId, java.lang.String jndiName, java.lang.String description, boolean isSessionManaged)
          This method creates the EJB
 void ejbPostCreate(java.lang.String requestId, java.lang.String jndiName, java.lang.String description, boolean isSessionManaged)
          This method creates the EJB
 java.lang.String getDescription()
          This method gets a description of the bean.
 java.lang.String getJNDIName()
          Deprecated. Method naming does not comply with EJB2.0 standard. Use getJndiName()
 java.lang.String getRequestId()
          This method gets the REQUEST_ID of the bean.
 boolean isSessionManaged()
          Deprecated. Method naming does not comply with EJB2.0 standard. Use getSessionManaged()
 DataPacket toDataPacket()
          Convert the results into a DataPacket format.
 
Methods inherited from class com.bankframe.ejb.EEntityBean
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, setEntityContext, toString, unsetEntityContext, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

requestId

public java.lang.String requestId

jndiName

public java.lang.String jndiName

description

public java.lang.String description

sessionManaged

public java.lang.String sessionManaged
Constructor Detail

RouteBean

public RouteBean()
Method Detail

ejbCreate

public RoutePK ejbCreate(java.lang.String requestId,
                         java.lang.String jndiName,
                         java.lang.String description,
                         boolean isSessionManaged)
                  throws javax.ejb.CreateException
This method creates the EJB

Parameters:
requestId - REQUEST_ID
jndiName - JNDI Name
description - Description
isSessionManaged -
Throws:
RemoteException - RemoteException
javax.ejb.CreateException - CreateException
See Also:
javax.ejb.EntityBean.ejbCreate(...)

ejbPostCreate

public void ejbPostCreate(java.lang.String requestId,
                          java.lang.String jndiName,
                          java.lang.String description,
                          boolean isSessionManaged)
This method creates the EJB

Parameters:
requestId - REQUEST_ID
jndiName - JNDI Name
description - Description
isSessionManaged -
Throws:
RemoteException - RemoteException
javax.ejb.CreateException - CreateException
See Also:
javax.ejb.EntityBean.ejbCreate(...)

getDescription

public java.lang.String getDescription()
This method gets a description of the bean.

Returns:
a string Description of the bean.
Throws:
RemoteException

getJNDIName

public java.lang.String getJNDIName()
Deprecated. Method naming does not comply with EJB2.0 standard. Use getJndiName()

This method gets the JNDI name of the bean.]

Returns:
a string JNDI name of the bean.
Throws:
RemoteException

getRequestId

public java.lang.String getRequestId()
This method gets the REQUEST_ID of the bean.

Returns:
a string REQUEST_ID of the bean.
Throws:
RemoteException

isSessionManaged

public boolean isSessionManaged()
Deprecated. Method naming does not comply with EJB2.0 standard. Use getSessionManaged()

This method checks whether an entry in the services table is session managed.

Returns:
true or false

toDataPacket

public DataPacket toDataPacket()
Convert the results into a DataPacket format.

Specified by:
toDataPacket in class EEntityBean
Returns:
a DataPacket of results


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