The Method getTimerService() is undefined for the type EJBContext
Applies to:
EJB 2.1
Description:
Error while trying to build j2ee.jar containing TimeService EJB 2.1.
Cause:
sessionContext.getTimerService(); is not found because the EJBContext interface is not implemented.
JAVA-EJB "session context" in weblogic web services, "the method is undefined for the type" implementing an interface, "the method is undefined for the type" jsp, .gettimerservice() error, compiler error on gettimerservice on sessioncontext, context.gettimerservice, ejb 2.1 gettimerservice, ejb gettimerservice null, ejb sessioncontext gettimerservice, ejbcontext and webservices, ejbcontext gettimerservice, error, gettimerservice sessioncontext, gettimerservice sessioncontext java 6, gettimerservice weblogic 10.3, gettimerservice what method?, gettimerservice wls, gettimerservice(), gettimerservice() ejb 3 web logic, gettimerservice() is undefined for the type sessioncontext, gettimerservice() weblogic, j, jboss gettimerservice sessioncontext is null, lrm-00118: syntax error at '=' at the end of input, not found, not found gettimerservice, servlet context gettimerservice, session context gettimerservice, session context weblogic, session context.gettimerservice is null, sessioncontext is undefined, sessioncontext weblogic 10.3 "@webservice()", sessioncontext.gettimerservice jboss, sessioncontext.gettimerservice(), the method gettimerservice is undefined for the type ejbcontext, the method is undefined for the type ejbclient, the method is undefined for the type jsp ejb interface, the method is undefined rmi, the method read() is undefined for the type_jsp, undefined, versao do ejb 3.0 sessioncontext gettimerservice, weblogic gettimerservice, weblogicsessioncomtext
Try the following which implements EJBContext interface:
TimerService ts = ((EJBContext)sessionContext).getTimerService();