RemoteCommand¶
-
public interface
RemoteCommand
extends javax.ejb.EJBObject¶ RemoteCommand is the remote interface of RemoteCommandBean. It can execute a remote command with the given parameters.
Author: Hugo Y. K. Lam See also:
RemoteCommandBean
,RemoteCommandHandler
Methods¶
execute¶
-
public Object
execute
(String cmdName, Object[] parameters)¶ Executes a registered command with the given parameters.
Parameters: - cmdName – the command name.
- parameters – parameters for the target method invocation.
Throws: - java.rmi.RemoteException – if there is a remote exception occurred.
- InstanceException – if the instance of the target class cannot be created or the method could not be invoked.
- InvocationTargetException – if the invoked method has thrown an exception.
- NullPointerException – if the command is not registered.
Returns: the object returned by the invoked method.