« Return to Thread: Quartz plugin problem

Re: Quartz plugin problem

by Sergey Nebolsin :: Rate this Message:

Reply to Author | View in Thread

Hi!

Where did this piece of code come from?

static triggers = {
    String cronExpression = '01 15 15 * * *'
 }

You should either use 'String cronExpression = '01 15 15 * * *'' (without static triggers = {}), but this syntax is old and deprecated.

Or you should use the new syntax:

static triggers = {
  cron cronExpression: '01 15 15 * * *' // it was cronTrigger cronExpression: '...' before 0.4.1 version of the plugin
}

More information on Quartz plugin configuration syntax you could find in the docs: http://www.grails.org/plugin/quartz

Cheers 


On Tue, Dec 1, 2009 at 11:22 PM, johnneal <johnpneal@...> wrote:

Hey:

I am having a similar problem to this, I sent off an email to the author but
any other help is apprecited.  I did not get the fixes to work, so I went to
the string method.  The problem is that it does not kick the job off,
nothing happens, granted I am running in the grails environment on windows,
if thats a problem, but i ran it with a dely of 25 seconds (originally
created when I created the job) and it kicks off.  Here is my code:

import com.consilium1.ftp.FTPService


class PullDpReportFilesJob {
 static triggers = {
    String cronExpression = '01 15 15 * * *'
 }

   def group = "MyGroup"

   def execute() {
       println "********** Job run! **********"
       def ftpService = new FTPService()
       ftpService.pullFilesToDb('jneal', 'password', '10.xx.xx.xx',
'/home/jneal')
   }

Any help is appreciated.


--
View this message in context: http://old.nabble.com/Quartz-plugin-problem-tp24306431p26598463.html
Sent from the grails - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Sergey Nebolsin
Chief Technical Officer
Prophotos.ru, Photoawards.ru

 « Return to Thread: Quartz plugin problem