IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.services
Class EJBInvocation

java.lang.Object
  extended bycom.ibm.btt.base.Service
      extended bycom.ibm.btt.services.BTTServiceRequester
          extended bycom.ibm.btt.services.ServiceInvocation
              extended bycom.ibm.btt.services.EJBInvocation
All Implemented Interfaces:
Externalizable, java.io.Externalizable, java.io.Serializable

public class EJBInvocation
extends ServiceInvocation

EJBInvocation is a kind of the service invocation via EJB interface.

See Also:
Serialized Form

Field Summary
(package private) static java.lang.String INITIAL_CONTEXT_FACTORY
           
(package private) static java.lang.String JNDI_NAME
           
(package private) static java.lang.String PROVIDER_URL
           
 
Fields inherited from class com.ibm.btt.services.BTTServiceRequester
COMPID
 
Fields inherited from class com.ibm.btt.base.Service
externalizer, name
 
Constructor Summary
EJBInvocation()
           
 
Method Summary
 BTTServiceHolderEJB getEjbRemoteInterface()
          Returns the ejbRemoteInterface.
 java.lang.String getInitCtxFactory()
          Returns the initCtxFactory.
 java.lang.String getInvokeType()
          Getter of invocation type
 java.lang.String getJndiName()
          Returns the jndiName.
 java.lang.String getProviderURL()
          Returns the providerURL.
 void initialize(java.lang.String dseInit)
          Method initialize is to send the request with the file path of dse.ini to the service holder.
 void initializeFrom(java.util.ResourceBundle config)
          Work as initializeFrom(Tag).
 java.lang.Object initializeFrom(Tag aTag)
          Initializes the Service reading its attributes values from aTag.
 java.util.Vector processRequest(java.lang.String ServiceID, java.lang.String opName, java.util.Hashtable parts)
          Method processRequest call to the ejb remote interface to perform the process request.
 void setEjbRemoteInterface(BTTServiceHolderEJB ejbRemoteInterface)
          Sets the ejbRemoteInterface.
 void setInitCtxFactory(java.lang.String initCtxFactory)
          Sets the initCtxFactory.
 void setJndiName(java.lang.String jndiName)
          Sets the jndiName.
 void setProviderURL(java.lang.String providerURL)
          Sets the providerURL.
 
Methods inherited from class com.ibm.btt.services.BTTServiceRequester
getCachingEnabled, getInactiveTimeout, getLastAccess, getServiceID, getServiceInvocation, getServiceType, grantServiceID, HashMapToHashtable, newInstance, processRequest, releaseServiceRequester, setCachingEnabled, setInactiveTimeout, setLastAccess, setServiceID, setServiceInvocation, setServiceType
 
Methods inherited from class com.ibm.btt.base.Service
externalizer, getExternalizer, getName, getTagName, readExternal, readExternal, readObject, removeExternal, setExternalizer, setName, terminate, toString, toStrings, toTags, writeExternal, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROVIDER_URL

static final java.lang.String PROVIDER_URL
See Also:
Constant Field Values

INITIAL_CONTEXT_FACTORY

static final java.lang.String INITIAL_CONTEXT_FACTORY
See Also:
Constant Field Values

JNDI_NAME

static final java.lang.String JNDI_NAME
See Also:
Constant Field Values
Constructor Detail

EJBInvocation

public EJBInvocation()
Method Detail

initializeFrom

public java.lang.Object initializeFrom(Tag aTag)
                                throws java.io.IOException,
                                       DSEException
Description copied from class: Service
Initializes the Service reading its attributes values from aTag.

Specified by:
initializeFrom in interface Externalizable
Overrides:
initializeFrom in class ServiceInvocation
Throws:
java.io.IOException
DSEException
See Also:
It is inherited from the supper class and get the related information for the EJB invocation.

initializeFrom

public void initializeFrom(java.util.ResourceBundle config)
                    throws java.lang.Exception
Work as initializeFrom(Tag). It is inherited from the supper class and get the related information for the EJB invocation.

Overrides:
initializeFrom in class ServiceInvocation
Throws:
java.lang.Exception

getInvokeType

public java.lang.String getInvokeType()
Getter of invocation type

Overrides:
getInvokeType in class ServiceInvocation
Returns:
String Invocation type

processRequest

public java.util.Vector processRequest(java.lang.String ServiceID,
                                       java.lang.String opName,
                                       java.util.Hashtable parts)
                                throws java.lang.Exception
Method processRequest call to the ejb remote interface to perform the process request.

Parameters:
ServiceID - Service ID which is matched to the service object's definition
opName - Operation name
parts - Operation parameters
Returns:
Vector Execution result. Using Vector is for the serialization reason.
Throws:
java.lang.Exception
java.rmi.RemoteException

getEjbRemoteInterface

public BTTServiceHolderEJB getEjbRemoteInterface()
Returns the ejbRemoteInterface.

Returns:
DSEServiceHolderService

getInitCtxFactory

public java.lang.String getInitCtxFactory()
Returns the initCtxFactory.

Returns:
String

getProviderURL

public java.lang.String getProviderURL()
Returns the providerURL.

Returns:
String

setEjbRemoteInterface

public void setEjbRemoteInterface(BTTServiceHolderEJB ejbRemoteInterface)
Sets the ejbRemoteInterface.

Parameters:
ejbRemoteInterface - The ejbRemoteInterface to set

setInitCtxFactory

public void setInitCtxFactory(java.lang.String initCtxFactory)
Sets the initCtxFactory.

Parameters:
initCtxFactory - The initCtxFactory to set

setProviderURL

public void setProviderURL(java.lang.String providerURL)
Sets the providerURL.

Parameters:
providerURL - The providerURL to set

getJndiName

public java.lang.String getJndiName()
Returns the jndiName.

Returns:
String

setJndiName

public void setJndiName(java.lang.String jndiName)
Sets the jndiName.

Parameters:
jndiName - The jndiName to set

initialize

public void initialize(java.lang.String dseInit)
                throws BTTInitializeServiceHolderException,
                       BTTCreateServiceException,
                       java.rmi.RemoteException
Method initialize is to send the request with the file path of dse.ini to the service holder. Once the service holder received the request, the service holder will initial BTT environment.

Parameters:
dseInit - File path of dse.ini
Throws:
BTTInitializeServiceHolderException
BTTCreateServiceException
java.rmi.RemoteException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005