Plugin Triggered by scheduler not by user

Use this forum for all questions related to the source code of OpenEMM

Moderator: moderator

Plugin Triggered by scheduler not by user

Postby ruffp » Tue May 06, 2014 8:37 am

Is there any way to use the built-in scheduler (quartz with Spring) in order to trig my plugin by a scheduler and not manually by the user action (click a button) ?

I saw in the source code:

<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="dateBasedMailingsCronTrigger"/>
<ref bean="delayedMailingsCronTrigger"/>
<ref bean="cleanDBCronTrigger"/>
<ref bean="loginTrackTableCleanerJobTrigger" />
</list>
</property>
</bean>

Is there anyway to get this factory at runtime (with getBeans? ) from the plugin extension?

For the moment my plugin extends "AnnotatedDispatchingEmmFeatureExtension" and I would let the user to force the action by clicking on the button.

Thanks for your help
ruffp
 
Posts: 10
Joined: Wed Apr 09, 2014 8:45 am

Re: Plugin Triggered by scheduler not by user

Postby ruffp » Thu Jun 12, 2014 12:57 pm

Nobody tried that already?
ruffp
 
Posts: 10
Joined: Wed Apr 09, 2014 8:45 am


Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron