background image
<< ParameterDeclarations Variable | RemoteMethods Variable >>
<< ParameterDeclarations Variable | RemoteMethods Variable >>

Replacement Variables for EJB Stub Templates

134
Appendix A - Template Replacement Variables
Replacement Variables for the EJB Stub Templates
The following table lists the replacement variables that are used in the EJB templates
for stub generation:
<<!ParameterValuesAsSumofStrings!>> Parameter values converted to String
and concatenated.
NOTE: For complex data types such as
arrays, the generated code will need to
be modified to compile and work.
Example:
CStr(lAccountNo) + ", " +
CStr(lAmount)
FunctionBody
PropertyGetBody
PropertyLetBody
SubBody
<<!ReasonForNoLookupCodeGeneratio
n!>>
Describes why lookup code was not
generated.
Example:
This Method does not have parameters.
Lookup code cannot be generated.
Insert code here to add logic.
FunctionBodyWith
outLookUp
PropertyGetBodyW
ithoutLookUp
SubBodyWithoutLo
okUp
Variable
Description
Template
Variable
Description
Template
<<!JavaPackage!>>
Package name of the EJB.
Example:
RationalBankAcct
Session_Home
Session_Remote
Session_Bean
<<!HomeInterfaceName!>>
Class name for the home interface.
Example: ManageAccountsHome
Session_Home
<<!HomeMethods!>>
Method declarations for methods in
the home interface. For example,
RationalBankAcct.ManageAccounts
create() throws
javax.ejb.CreateException,java.rmi.Re
moteException.
Session_Home
<<!RemoteInterfaceName!>>
Class name for the remote interface.
Example:
ManageAccounts
Session_Remote
MethodBody
MethodBodyWithoutExce
ptions
MethodBodyWithoutRetu
rnValue.