users@glassfish.java.net

Re: EJB3 timer: automatically start with module deployment?

From: <glassfish_at_javadesktop.org>
Date: Fri, 25 Jan 2008 07:48:29 PST

Hi Kristian,

The current EJB spec does not provide an easy way to have a timer automatically created as a result of deployment. It's a feature that we're working on for EJB 3.1 (JSR 318). The best you can portably do right now is use a web container initialization event to call into a stateless session bean. The Stateless session bean then creates a timer if it hasn't already been created. This check is necessary since the web initialization event happens each time the server is started.

 --ken
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=255794