users@glassfish.java.net

RE: RE: Scheduled task

From: Dru Devore <ddevore_at_duckhouse.us>
Date: Fri, 29 Feb 2008 15:11:41 -0700
I have seen that one and you are correct. It will not be out in time to solve my problem unless it comes out tomorrow. But man I am really looking forward to that one.



---
Dru Devore


-------- Original Message --------
Subject: Re: RE: Scheduled task
From: glassfish@javadesktop.org
Date: Fri, February 29, 2008 4:28 pm
To: users@glassfish.dev.java.net

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net