The Method getTimerService() is undefined for the type EJBContext

  • Share
  • Share

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 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

  1. admin
    March 9th, 2009 at 18:22 | #1

    Try the following which implements EJBContext interface:
    TimerService ts = ((EJBContext)sessionContext).getTimerService();

  1. No trackbacks yet.