I am developing an enterprise application using JavaEE7 EJB 3.1 that is "Fast food restaurant management". Now I am writting a framework for user to create many types of event they wish. Let's say, like KFC or McDonalt, they usually apply many event to discount their products, or buy one get many... etc. Now I get stuck with the timer service ( I want events have interval time to take effects, and stop if they are expired, schedule...blah blah ). Please let me know if TimeService is the right API to solve this problem ! If not, can you suggest me many EJB API to handle this stuff. Thank alot !