net.wgen.op
Class EjbOpExecutor
java.lang.Object
net.wgen.op.EjbOpExecutor
- All Implemented Interfaces:
- OpExecutor
- public class EjbOpExecutor
- extends java.lang.Object
- implements OpExecutor
Executes an Op using the JNDI-registered OpManager EJB.
- Version:
- $Id: EjbOpExecutor.html,v 1.2 2007/01/28 04:09:36 paulfeuer Exp $
- Author:
- Paul Feuer, Wireless Generation, Inc.
|
Method Summary |
Op |
executeOp(Op op)
Execute an Op by getting access to an EJB-bound OpExecutor using OpManagerHome and
invoking that OpExecutor. |
private OpExecutor |
getRemoteShell(java.lang.String jndiEjbPath)
Get a reference to the OpExecutor EJB. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_jndiEjbPath
private final java.lang.String _jndiEjbPath
EjbOpExecutor
public EjbOpExecutor(java.lang.String jndiEjbPath)
executeOp
public Op executeOp(Op op)
throws OpException,
java.rmi.RemoteException
- Execute an Op by getting access to an EJB-bound OpExecutor using OpManagerHome and
invoking that OpExecutor.
- Specified by:
executeOp in interface OpExecutor
- Parameters:
op - the op to execute
- Returns:
- the Op, which if operating locally will be the same Op that went in, but if executed
thru EJB the returned Op will not be the same exact object, as EJB is call-by-value.
- Throws:
OpException
java.rmi.RemoteException
getRemoteShell
private OpExecutor getRemoteShell(java.lang.String jndiEjbPath)
throws javax.naming.NamingException,
java.rmi.RemoteException,
javax.ejb.CreateException
- Get a reference to the OpExecutor EJB.
- Returns:
- the EJB OpExecutor
- Throws:
javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException