Here is a summary of what I have seen so far.
1. Use Timer API, suggested using JMS though I like using a stateless session since it doesn't need to accept any messages, it only does work and dies.
Need to start it upon startup of the server and can only have one running at a time.
For this solution I need to add a web component to start it and I don't want to require a web component.
2. Use Quartz though it seems to be larger than we need.
Best solutions I am considering right now.
1. Using the Timer API with a web component and make a completely new project for it to separate it from my other project.
2. Add the extra for quartz and change the scheduling of the project to make better use of Quartz.
I think that is about it so please let me know what you think of the two solutions.
Thanks
---
Dru Devore
-------- Original Message --------
Subject: Re: Scheduled task
From: Markus KARG <markus.karg@gmx.net>
Date: Sat, March 01, 2008 3:39 am
To: users@glassfish.dev.java.net
Wow, that sounds pretty cool! This is something we had to work around
for years using JCA. :-) Is there some blog or stuff that explains what
else is planned in EJB 3.1 in simple words?
Thanks
Markus
glassfish@javadesktop.org schrieb:
> 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
>
>
--
http://www.xing.com/go/invita/58469