Re: [akka-user] QUARTZ Job Scheduler with akka [java play]

1,558 views
Skip to first unread message

Henrik Engström

unread,
Dec 27, 2012, 2:12:11 PM12/27/12
to akka...@googlegroups.com
Hello Raju,
Akka uses its own scheduler with which you can schedule tasks to be run, see:

You also have the option of using jobs in Play (which uses the same DSL as Quartz for scheduling tasks):

If you still want to use Quartz in Akka I recommend you to take a look at the Akka Camel Quart component here:

HTH
//Henrik


On Thu, Dec 27, 2012 at 5:59 PM, Raju Bishnoi <rajubi...@gmail.com> wrote:
Hi everyone,

We are running the application in core java with quartz job scheduler(add/update/delete jobs).
Now we are moving it to play framework(with akka distribution), so i want the help regarding the integration of QUARTZ job scheduler in play framework using akka.
I gone through the play and akka docs but didn't get how to implement it.
We want quartz job scheduler with add/update/delete jobs functionality.

Please help us ASAP.

Thanks
Raju

--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
 
 

Henrik Engström

unread,
Dec 28, 2012, 3:39:10 AM12/28/12
to akka...@googlegroups.com
Hello Raju,
With the Akka scheduler you have the option of scheduling messages sent to actors, functions or even runnables.
It is possible to schedule these once or repeatedly with a frequency.
See more information about 2.0.4 scheduling here: http://doc.akka.io/docs/akka/2.0.4/java/scheduler.html

Just want to point out that the Akka scheduler is not constructed the same way as the Quartz scheduler in the sense that there is no notion of create/get/update/delete jobs.
You will have to implement that functionality yourself. The scheduler is just a mechanism to make sure that things occur in the future (once or repeatedly).
(I have not tried the code above myself so no guarantees attached).

Thanks
//Henrik

On Fri, Dec 28, 2012 at 7:40 AM, Raju Bishnoi <rajubi...@gmail.com> wrote:
Hi Henrik

Thanks for your response.

We are using the play 2.0.4 version and jobs are not there in latest version. After googling i found "Jobs have been replaced with Akka" in play 2.0. see:
http://stackoverflow.com/questions/11628934/how-to-create-a-bootstrap-job-in-play-framework-2-0

I gone through the akka scheduler link which you provided but didn't get how to get, update and delete the jobs.
If i restarted the play then how to get the existing scheduled jobs.

We are using the play framework so i don't think we can integrate the camel-akka Quartz scheduler with play.

Please provide me the sample example of job scheduler with play+akka to create/get/update/delete the jobs.

Looking forward to hear positive response from you.

Thanks
Raju
Reply all
Reply to author
Forward
0 new messages