Page 1 of 1

Plugin Triggered by scheduler not by user

Posted: Tue May 06, 2014 8:37 am
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

Re: Plugin Triggered by scheduler not by user

Posted: Thu Jun 12, 2014 12:57 pm
by ruffp
Nobody tried that already?