com.ibm.websphere.commandUtil
Interface CommandServerEntity

All Superinterfaces:
CommandTarget, javax.ejb.EJBObject, java.rmi.Remote

public interface CommandServerEntity
extends javax.ejb.EJBObject, CommandTarget

This is simply a mixin of the EJBObject and CommandTarget interfaces with no new methods added.


Method Summary
 TargetableCommand executeCommand(TargetableCommand command)
          This interface provides a EJB wrapper for CommandTarget.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

executeCommand

public TargetableCommand executeCommand(TargetableCommand command)
                                 throws java.rmi.RemoteException,
                                        CommandException
This interface provides a EJB wrapper for CommandTarget. The user can deploy the CommandServerEntity bean on to a desired Application Server. The command will be transferred to the designated Application Server through this CommandServerEntity bean.
Specified by:
executeCommand in interface CommandTarget
Parameters:
command - The TargetableCommand to be executed.
Returns:
The TargetableCommand that has been executed. If the command.hasOutputProperties method returns false, this is allowed to be null as a performance optimization.
Throws:
java.rmi.RemoteException - The superclass for all remove exceptions. This is thrown to allow the possibility for this method to be an RMI remote method.
CommandException - The superclass for all command exceptions.