IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.base
Class CHAHelper

java.lang.Object
  extended bycom.ibm.btt.base.CHAHelper

public class CHAHelper
extends java.lang.Object

The class is a helper class.


Constructor Summary
CHAHelper()
           
 
Method Summary
static CHAInstance getCHAInstance(java.lang.String aInstanceID)
          Get the CHA Instance in CHA server corresponding to the context specified by instanceID parameter.
static CHAInstanceLocal getCHAInstanceLocal(java.lang.String InstanceID)
          Get the local instance of the CHA Instance specified by parameter instanceID, it is CHAInstanceLocal
static CHAInstanceLocalHome getCHAInstanceLocalHome()
           
static CHASession getCHASession(java.lang.String location)
           
static CHASessionLocal getCHASessionLocal()
          Method getCHASessionLocal().
static java.lang.String getLocation(java.lang.String anInstanceID)
          Return the location of the context by analyzing the instanceID.
static boolean isSupportMultipleCHAServer()
          Judge if our customer choose to use Multiple CHA server Architecture or not
static boolean loadMetaDataStart()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CHAHelper

public CHAHelper()
Method Detail

getCHASession

public static CHASession getCHASession(java.lang.String location)
                                throws DSEInvalidRequestException
Parameters:
location - Specify which EJB container the CHA Session EJB object will be got from.
Returns:
EJB object of CHASession EJB
Throws:
DSEInvalidRequestException

getCHASessionLocal

public static CHASessionLocal getCHASessionLocal()
                                          throws DSEInvalidRequestException
Method getCHASessionLocal().

Returns:
EJB object of CHASessionLocal
Throws:
java.rmi.RemoteException
javax.naming.NamingException
javax.ejb.CreateException
DSEInvalidRequestException

getCHAInstance

public static CHAInstance getCHAInstance(java.lang.String aInstanceID)
                                  throws DSEInvalidRequestException
Get the CHA Instance in CHA server corresponding to the context specified by instanceID parameter.

Returns:
CHAInstance
Throws:
java.rmi.RemoteException
javax.naming.NamingException
javax.ejb.FinderException
DSEInvalidRequestException

getCHAInstanceLocal

public static CHAInstanceLocal getCHAInstanceLocal(java.lang.String InstanceID)
                                            throws DSEInvalidRequestException
Get the local instance of the CHA Instance specified by parameter instanceID, it is CHAInstanceLocal

Parameters:
InstanceID -
Returns:
CHAInstanceLocal
Throws:
DSEInvalidRequestException

getCHAInstanceLocalHome

public static CHAInstanceLocalHome getCHAInstanceLocalHome()
                                                    throws DSEInvalidRequestException
Throws:
DSEInvalidRequestException

loadMetaDataStart

public static boolean loadMetaDataStart()
Returns:
true if loading Meta Data successfully.

getLocation

public static java.lang.String getLocation(java.lang.String anInstanceID)
                                    throws DSEInvalidRequestException
Return the location of the context by analyzing the instanceID.

Parameters:
anInstanceID -
Returns:
location, an EJB provider URL.
Throws:
DSEInvalidRequestException

isSupportMultipleCHAServer

public static boolean isSupportMultipleCHAServer()
                                          throws DSEInvalidRequestException
Judge if our customer choose to use Multiple CHA server Architecture or not

Returns:
true if support Multiple CHA servers. Otherwise, false.
Throws:
DSEInvalidRequestException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005