Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needs spring based version #98

Open
GoogleCodeExporter opened this issue Dec 22, 2015 · 4 comments
Open

Needs spring based version #98

GoogleCodeExporter opened this issue Dec 22, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 8 Sep 2012 at 6:25

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: Type-Question
  • Removed labels: Type-Enhancement

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 9 Sep 2012 at 12:33

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Answered

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 12 Nov 2013 at 10:52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant