The object that is the target of a TargetableCommand must implement
the CommandTarget interface. This object can be an actual server-side object,
such as an entity bean, or it can be a client-side adapter for a server.
About this task
The implementor of the CommandTarget interface is responsible for
ensuring the proper execution of a command in the desired target server environment.
This typically requires the following steps:
Procedure
- Copying the command to the target server by using a server-specific
protocol.
- Running the command in the server.
- Copying the executed command from the target server to the client
by using a server-specific protocol.