users@glassfish.java.net

Re: RE: Scheduled task

From: <glassfish_at_javadesktop.org>
Date: Fri, 29 Feb 2008 13:28:11 PST

Though it won't help solve your issue right now, just wanted to let you know the programmatic timer creation limitation is something we're aware of and plan to address in EJB 3.1 (http://jcp.org/en/jsr/detail?id=318)

The JSR is still in progress but based on initial discussions the use-case you mentioned would look something like the following :

@Stateless
public class TaskBean {

// Automatically create a timer that calls this method every minute
@Schedule(minute="*", hour="*")
public void timeout() {
...
}
[Message sent by forum member 'ksak' (ksak)]

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