I have some problem with TimerService EJB 2.1. i am getting an small error ....
And in my classpath i have included j2ee.jar which contains Timerservice..but when i am trying to build it, it is saying
sessionContext.getTimerService(); not found...code is like this...
i have declared sessionContext everything ....but what could be the problem....its a bit urgent..
public void cancelTimer(String timerName)
// Here is the error it is saying....only this below line
TimerService ts = sessionContext.getTimerService();
Collection timers = ts.getTimers();
Iterator it = timers.iterator();
Timer myTimer = (Timer) it.next();
System.out.println("Successfully Cancelled " + timerName);
catch (Exception e)
System.out.println("Exception after create timer : "+ e.toString());
awaiting for the answers...