net.wgen.op
Class OpManagerBean
java.lang.Object
net.wgen.op.OpManagerBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, OpExecutor, java.io.Serializable, javax.ejb.SessionBean
- public class OpManagerBean
- extends java.lang.Object
- implements javax.ejb.SessionBean, OpExecutor
Stateless EJB SessionBean that executes Op by instantiating a
DirectOpExecutor with a JndiMappedConnectionFactory.
- Version:
- $Id: OpManagerBean.html,v 1.2 2007/01/28 04:09:36 paulfeuer Exp $
- Author:
- Paul Feuer, Wireless Generation, Inc.
- See Also:
- Serialized Form
|
Field Summary |
protected javax.ejb.SessionContext |
_sessionCtx
Current SessionContext for this bean. |
private static org.apache.log4j.Logger |
LOG
Logger. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final org.apache.log4j.Logger LOG
- Logger.
_sessionCtx
protected javax.ejb.SessionContext _sessionCtx
- Current SessionContext for this bean.
OpManagerBean
public OpManagerBean()
ejbCreate
public void ejbCreate()
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemove in interface javax.ejb.SessionBean
ejbActivate
public void ejbActivate()
- Specified by:
ejbActivate in interface javax.ejb.SessionBean
ejbPassivate
public void ejbPassivate()
- Specified by:
ejbPassivate in interface javax.ejb.SessionBean
setSessionContext
public void setSessionContext(javax.ejb.SessionContext sc)
- Specified by:
setSessionContext in interface javax.ejb.SessionBean
executeOp
public Op executeOp(Op op)
throws OpException
- Execute an Op.
- 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