background image
<< RemoteMethods Variable | Exceptions Variable >>
<< RemoteMethods Variable | Exceptions Variable >>

MethodBodyTemplate Variable

136
Appendix A - Template Replacement Variables
<<!MethodBodyTemplate!>>
This variable causes the stub
generator to use one of the four
methodbody templates to generate
the declaration and definition for
each public method in the
implementation class.
The method body templates are
chosen via the following criteria:
MethodBodyWithoutLookUp ­ Used
when lookup code cannot be
generated either because the method
has no parameters, or method has
neither a return value nor exceptions,
or one of the parameters is complex
and lookup code cannot be generated
automatically.
MethodBodyWithoutExceptions ­
Used when the method does not
throw exceptions.
MethodBodyWithoutReturnValue ­
Used when method does not have a
return value (for example, returns
void).
MethodBody ­ Used for all other
methods.
Session_Bean
<<!ReturnType!>>
Return type for the method
Example:
java.math.BigDecimal
MethodBody
MethodBodyWithoutExce
ptions
MethodBodyWithoutLook
Up
<<!MethodName!>>
The Method Name
Example:
depositToChecking
MethodBody
MethodBodyWithoutExce
ptions
MethodBodyWithoutLook
Up
MethodBodyWithoutRetu
rnValue
<<!ParameterDeclarations!>>
Comma-separated list of parameter
types and names to be included as
part of the method declaration.
Example:
long accountID,
java.math.BigDecimal amount
MethodBody
MethodBodyWithoutExce
ptions
MethodBodyWithoutLook
Up
MethodBodyWithoutRetu
rnValue
Variable
Description
Template