IBM Bank Transformation Toolkit Javadoc

com.ibm.btt.cha.ejb
Class CHAEJBHomeLocalFactory

java.lang.Object
  extended by com.ibm.btt.cha.ejb.CHAEJBHomeLocalFactory

public class CHAEJBHomeLocalFactory
extends java.lang.Object

A generic helper class to both obtain the initial context and look up the home interface for every bean in the application. EJB home interface is looked up in the home interface cache at first. If got nothing, look up it again with the provided JNDI name and save it into the home interface cache for further use.


Constructor Summary
protected CHAEJBHomeLocalFactory()
          Method EJBHomeFactory.
 
Method Summary
protected  void cleanUp()
          Clean up memory
static CHAEJBHomeLocalFactory getInstance()
           
static boolean isVistFirstTime()
           
 javax.ejb.EJBLocalHome lookup(java.lang.String jndiName, java.lang.Class homeInterfaceClass)
          Method lookup.
static void setVistFirstTime(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CHAEJBHomeLocalFactory

protected CHAEJBHomeLocalFactory()
                          throws CHAEJBLookupException
Method EJBHomeFactory. This is private, and can't be instantiated directly

Throws:
CHAEJBLookupException
Method Detail

lookup

public javax.ejb.EJBLocalHome lookup(java.lang.String jndiName,
                                     java.lang.Class homeInterfaceClass)
                              throws CHAEJBLookupException
Method lookup.

Parameters:
jndiName -
homeInterfaceClass -
Returns:
EJBHome
Throws:
java.lang.Exception
CHAEJBLookupException

getInstance

public static CHAEJBHomeLocalFactory getInstance()
                                          throws CHAEJBLookupException
Throws:
DSEInvalidRequestException
CHAEJBLookupException

isVistFirstTime

public static boolean isVistFirstTime()
Returns:
true if it is the first time for this client to visit the CHA server specified by the parameter ejbProviderURL.

setVistFirstTime

public static void setVistFirstTime(boolean b)
Parameters:
b -

cleanUp

protected void cleanUp()
Clean up memory


IBM Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2008