Guice + Quartz + iBatis
- by DroidIn.net
I'm trying to wire together Guice (Java), Quartz scheduler and iBatis (iBaGuice) to do the following:
Start command line utility-scanner using main()
Periodically scan directory (provided as argument) for files containing formatted output (XML or YAML)
When file is detected, parse and output result to the database
The problems:
I used this example to wire Guice and Quartz. However I'm missing some important details which I'm asking in the comments but the post is somewhat dated so I'm quoting it here also:
It's not obvious how to set-up the scheduler. Where and how would I wire the Trigger (I can use Trigger#makeMinutelyTrigger)?
I really have just one type of job I will be executing, I understand that details in the JobFactory#newJob are coming from the TriggerFiredBundle parameter but where/how do I wire that? And where/how do I create or wire concrete Job?