Search in sources :

Example 1 with BaseContext

use of org.apache.openejb.core.BaseContext in project tomee by apache.

the class EjbTimerServiceImpl method checkState.

/**
 * Insure that timer methods can be invoked for the current operation on this Context.
 */
private void checkState() throws IllegalStateException {
    final BaseContext context = (BaseContext) deployment.get(EJBContext.class);
    context.doCheck(BaseContext.Call.timerMethod);
}
Also used : BaseContext(org.apache.openejb.core.BaseContext) EJBContext(javax.ejb.EJBContext)

Aggregations

EJBContext (javax.ejb.EJBContext)1 BaseContext (org.apache.openejb.core.BaseContext)1