I work with a company that is beginning to use Grails 1.3.7 (yes, outdated, as this is the only version the vendor supports) and Groovy. We want to base our system on grails to run batch database jobs and eventually implement a web interface. What is the idiomatic way to write batch database jobs into grails and have it run on a regular schedule? Preferably without plugins, is there a way?
Alternatively, should we only use groovy scripts to run the batch jobs and put them into an old fashioned cron job, and if so, how can we extract the database connection from the WAR file or tomcat server (via JNDI)? I made some simple groovy scripts that connected to our Oracle db with hard-coded database information but probably don't want to do it that way going forward.
Perhaps there is a good beginners book that I can get to familiarize myself with grails as well?
Thanks,
Tom