You need to create the timer by invoking the createTimer method, either in ejbCreate or in a business method of the
EJB.
But I will point you to that link for ways to automatically invoke it:
http://www.onjava.com/pub/a/onjava/2004/10/13/j2ee-timers.html?page=2
Some business applications require automatically scheduling a timer task. If your business application requires the automatic creation of a timer when your application is deployed, you have the following J2EE options:
* Create the timer by invoking the EJB method: Invoke initializeTimer in the contextInitialized method of a ServletContextListener of a web module.
* Create a servlet and implement the init method to invoke the EJB method that creates the timer. Set the load-on-startup property for the servlet to automatically start the servlet when the web module is started.
* Use a Startup class using the proprietary API of your J2EE container.
I think that a nice approach would be to use EJB timers in association with Quartz.