package org.mockejb.test;
import javax.ejb.*;
import org.apache.commons.logging.*;
public class BaseSessionBean implements SessionBean {
private static Log logger = LogFactory.getLog( BaseSessionBean.class.getName() );
protected SessionContext sessionCtx;
protected void log(String message) {
logger.debug(message);
}
public void ejbActivate() {
log("ejbActivate called");
}
public void ejbRemove() {
log("ejbRemove called");
}
public void ejbPassivate() {
log("ejbPassivate called");
}
public void setSessionContext(SessionContext sessionCtx) {
log("setSessionContext called");
this.sessionCtx = sessionCtx;
}
public void ejbCreate() throws CreateException {
log("ejbCreate called");
}
}