arun3083 / myschedule

Automatically exported from code.google.com/p/myschedule
0 stars 0 forks source link

Needs spring based version #98

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am currently exploring myschedule web application to develop an UI based 
framework for our existing quartz based jobs. I have the following queries:

1. When I searched for spring based configuration in myschedule, i found spring 
based configuration files under myschedule-1.x version. Is it possible to 
provide the same configuration for the latest version as well?
Or else, shall I go-ahead and modify in my local environment (adding spring 
based configuration to the myschedule code).

Please let me know your thoughts/concerns.

Thanks & Regards,
Loganathan

Original issue reported on code.google.com by loga....@gmail.com on 8 Sep 2012 at 6:25

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by saltnlight5 on 11 Jun 2013 at 10:45

GoogleCodeExporter commented 9 years ago
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