com.bankframe.services.route
Class RouteLookup

java.lang.Object
  extended bycom.bankframe.services.route.RouteLookup

public class RouteLookup
extends java.lang.Object


Constructor Summary
RouteLookup()
           
 
Method Summary
static ESessionRemote getRemoteInterface(Route route)
          This method will get The remote interface to the EJB mapped to the specified Route.
 ESessionRemote getRemoteInterface(java.lang.String requestId)
          Get The Remote Interface to the EJB mapped to the specified REQUEST_ID.
static Route getRoute(java.lang.String requestId)
          This method will lookup up a REQUEST_ID, cache and return the corresponding Route.
static java.lang.String getRouteJndiName()
          This method will get the JNDI Name of the Route EJB.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteLookup

public RouteLookup()
Method Detail

getRemoteInterface

public static ESessionRemote getRemoteInterface(Route route)
                                         throws RequestRouterException
This method will get The remote interface to the EJB mapped to the specified Route.

Parameters:
route - The Route the EJB is mapped to
Returns:
ESessionRemote instance on success
Throws:
java.rmi.RemoteException - if an error occurs while trying to obtain the remote interface
RequestRouterException

getRemoteInterface

public ESessionRemote getRemoteInterface(java.lang.String requestId)
                                  throws RequestRouterException
Get The Remote Interface to the EJB mapped to the specified REQUEST_ID.

Parameters:
requestId - The REQUEST_ID
Returns:
ESessionRemote instance on success
Throws:
RequestRouterException - if no EJB is mapped to specified REQUEST_ID, or if an error occurs while trying to obtain the remote interface

getRoute

public static Route getRoute(java.lang.String requestId)
                      throws RequestRouterException
This method will lookup up a REQUEST_ID, cache and return the corresponding Route.

Parameters:
requestId - the REQUEST_ID of the Route to retrieve
Returns:
a Route instance
Throws:
RequestRouterException - if no matching Route can be found for the REQUEST_ID

getRouteJndiName

public static java.lang.String getRouteJndiName()
This method will get the JNDI Name of the Route EJB.

Returns:
the JNDI name


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