Open GoogleCodeExporter opened 9 years ago
Hello Loga,
I removed Spring in version 2 because it's such a simple web app, and I wanted
to reduce dependency to reduce size. However the handlers I used in MySchedule
is very POJO like, and be refitted into Spring if you like. There is nothing to
prevent you to use Spring or anything other things along with MySchedule.
However, keeps in my that MySchedule has two parts, the quartz add-on library
and the web application, and you can use them separately. As far as reusing the
webapp, it's more tricky since it's all built with the UI as it. You are free
to modify it anyway you like, but modifying it and fit into another framework
such as Spring MVC might take little digging on your own.
See our FAQ section on reusing the WAR in your app as well.
Have fun!
Zemian
Original comment by saltnlight5
on 8 Sep 2012 at 5:42
Hi Zemian,
Thanks for your response. Thanks for allowing to go-ahead and modify the code
as per the requirement. Also I would like to modify the
JdbcSchedulerHistoryPlugin to store the results of the job executed and also
not to persist the other listener results. Please provide your thoughts.
Thanks & Regards,
Loganathan
Original comment by loga....@gmail.com
on 9 Sep 2012 at 12:33
Original comment by saltnlight5
on 11 Jun 2013 at 10:45
I've integrated Spring and MySchedule in my application. And the code is in
jabb-core:
{{{
<groupId>net.sf.jabb</groupId>
<artifactId>jabb-core</artifactId>
<version>1.0.25</version>
}}}
The integration is inspired by: https://gist.github.com/jelies/5085593
To use it, first define the bean in Spring context like this:
{{{
<bean id="quartzJobFactory" class="net.sf.jabb.quartz.AutowiringSpringBeanJobFactory">
</bean>
}}}
Then, define this for the scheduler:
{{{
org.quartz.scheduler.jobFactory.class =
net.sf.jabb.quartz.AutowiringSpringBeanJobFactory
}}}
The result is that the instances of your Job classes will be autowired. You can
use @Autowired and @Value in your Job classes. And the parameters defined in
data map will be injected into instances of your Job classes if there are
setter methods for them.
Original comment by james.hu...@gmail.com
on 12 Nov 2013 at 10:52
Original issue reported on code.google.com by
loga....@gmail.com
on 8 Sep 2012 at 6:25