org.openejb.test.beans
Class CalculatorBean
java.lang.Object
org.openejb.test.beans.CalculatorBean
- All Implemented Interfaces:
- java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean
public class CalculatorBean
- extends java.lang.Object
- implements javax.ejb.SessionBean
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
public javax.ejb.SessionContext context
jndiContext
public javax.naming.InitialContext jndiContext
CalculatorBean
public CalculatorBean()
ejbCreate
public void ejbCreate()
add
public int add(int a,
int b)
doJdbcCall
protected void doJdbcCall()
sub
public int sub(int a,
int b)
ejbPassivate
public void ejbPassivate()
- Specified by:
ejbPassivate
in interface javax.ejb.SessionBean
ejbActivate
public void ejbActivate()
- Specified by:
ejbActivate
in interface javax.ejb.SessionBean
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemove
in interface javax.ejb.SessionBean
setSessionContext
public void setSessionContext(javax.ejb.SessionContext cntx)
- Specified by:
setSessionContext
in interface javax.ejb.SessionBean
Copyright © 1999-2011 OpenEJB. All Rights Reserved.