I’m using Google Guice, Guice servlet, and Jersey. I’d like to find an easy way to run scheduled jobs in the JVM. I found the following EJB example that creates “a @Singleton EJB with @Schedule method which executes in the background at specified intervals.” This is exactly what I’d like to do but wanted to see an easy way to do this w/o adding an EE dependency.
Share
You might find the Quartz integration for Guice meets your requirements here –
https://github.com/99soft/guartz
Here’s an example of the syntax