com.ibm.websphere.commandUtil
Class EJBCommandTarget
java.lang.Object
|
+--com.ibm.websphere.commandUtil.EJBCommandTarget
- All Implemented Interfaces:
- CommandTarget, java.io.Serializable
- public class EJBCommandTarget
- extends java.lang.Object
- implements CommandTarget, java.io.Serializable
This is the CommandTarget for commands that are executed in an
EJB server.
It uses a server side CommandServerEntityBean to allow concurrent access
by different transactions to execute the command on the server.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EJBCommandTarget
public EJBCommandTarget()
executeCommand
public TargetableCommand executeCommand(TargetableCommand command)
throws java.rmi.RemoteException,
CommandException
- This implements method in the CommandTarget interface.
- Specified by:
executeCommand
in interface CommandTarget
- Parameters:
command
- The TargetableCommand to be executed.- Returns:
- The TargetableCommand that has been executed.
If the command.hasOutputProperties 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.
An example of this is the com.ibm.util.command.ejb.EJBCommandTarget.CommandException
- The superclass for all command exceptions.
getInitialContext
public javax.naming.Context getInitialContext()
throws java.lang.Exception
- Gets an initial context for the current user, password and url.
- Returns:
- Context
- Throws:
java.lang.Exception
- if there is
an error in getting the Context