Command: INVOKE

USAGE invoke [-r|--return-value variable-name] ID [parameter..]
DESCRIPTION Invokes a previously defined remote method. Optionally, the return value can be stored in a JCShell variable for later referencing. If a remote object reference is returned, it is automatically added to the list of objects known by this plugin.
PARAMETER
NameDescriptionRequired
--+-- -r -------------+- variable-name ->
  !                   !
  +-- --return-value -+
Defines the JCShell variable that receives the return value of the remote method. This is either the HEX string representing the return value (for basic return types), the object ID if an object reference is returned, the string "null" if null is returned or a zero length string if the return type is void. If an exception/error occurs, an appropriate exception/error string is set.
No
ID Method identifier of the remote method to be invoked. Yes
parameter.. List of method parameters.
Parameters are to be defined as HEX strings representing the parameter values whereas null array references are represented by the string "null". Boolean values must be '00' (false) or '01' (true).
No
EXAMPLE Refer to the Sample RMI Session for additional details
CONDITIONS A remote method must be previously defined (see command method)