Article:
  Using Timers in J2EE Applications
Subject:   Precedence of timers
Date:   2007-07-03 10:13:41
From:   Yalavarty
I have an application that uses Timer Service through stateless session bean. Application has two timers and both use two different session beans. Both these timers will process a bunch of data once every week. The timers are scheduled in such a way that the second timer gets processed 1 hour after the first one has started processing. The question is does the second timer waits until the first timer completes processing data? It appears that even though the ejbTimeout is called on the second timer, the second timer is waiting for the first timer to complete. Doesn't a new task get created for every timer instance in the persistence tables behind the timer service? Can somebody shed some light on this?