Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.2
-
Fix Version/s: 0.3
-
Component/s: None
-
Labels:None
-
Environment:Window, Java 1.5, Grails 1.0 RC2, Grails Quarz 0.2
Description
It appears as though grails jobs are not reloaded when the job is changed.
created a job with a simple println,
started the app (grails run-app)
saw the output,
changed the println and saved.
the output did not change.
This is caused by the quartz scheduler being shut down.
When the job class is reloaded, the bean factory, which created the scheduler is destroyed. This leads to the scheduler being shut down, which in turn prohibits (re-)scheduling jobs.
This happens in QuartzGrailsPlugin.groovy:123:
def onChange = { event ->
...
event.ctx.registerBeanDefinition("${fullName}", beans.getBeanDefinition("${fullName}"))
...
}