The figure shows how an EJB remote job implements the RemoteCancellableExecutable
interface. The figure also shows how the hosting application invokes the execute and cancel methods of this interface. If execute functionality is sufficient, you can implement the RemoteExecutable
interface. If the execute and cancel functionalities are required, then implement the RemoteCancellableExecutable
interface.