Plugin Triggered by scheduler not by user

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

Moderator: moderator

ruffp
Posts: 10
Joined: Wed Apr 09, 2014 8:45 am

Plugin Triggered by scheduler not by user

Post by ruffp »

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

Post by ruffp »

Nobody tried that already?
Post Reply