users@glassfish.java.net

Re: Creating a timer

From: <glassfish_at_javadesktop.org>
Date: Thu, 13 Nov 2008 10:02:26 PST

Timer creation isn't allowed in PostConstruct of stateless session beans or message-driven
beans because the component lifecycle isn't a good fit for it. The container can create any
number of bean instances at any time, each of which would result in a new timer.

You'll need to move the timer creation to a business method. In EJB 3.1, we'll be adding a
way to have timers created automatically as a result of deployment.
[Message sent by forum member 'ksak' (ksak)]

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