Hi,
I am trying to schedule a job in Alfresco so for that, I have read this. I have got all idea how things work but this runs my java class 3 times instead of 1 time. How can I fix this?
I have also tried this but did not work.
All the files are attached.
Solved! Go to Solution.
I find the solution.
<bean id="customJobTrigger" class="org.alfresco.util.CronTriggerBean">
<property name="jobDetail">
<ref bean="customJobDetail" />
</property>
<property name="scheduler">
<ref bean="schedulerFactory" />
</property>
<property name="cronExpression">
<value>cronExpression</value>
</property>
</bean>
<bean id="customJobDetail" class="org.springframework.scheduling.quartz.JobDetailBean">
<property name="jobClass">
<value>CustomJobProcessor
</value>
</property>
</bean>
This guy had exactly the same problem
kayne zhang's answers must help you
Yes, I also tried that but does not work...
I find the solution.
<bean id="customJobTrigger" class="org.alfresco.util.CronTriggerBean">
<property name="jobDetail">
<ref bean="customJobDetail" />
</property>
<property name="scheduler">
<ref bean="schedulerFactory" />
</property>
<property name="cronExpression">
<value>cronExpression</value>
</property>
</bean>
<bean id="customJobDetail" class="org.springframework.scheduling.quartz.JobDetailBean">
<property name="jobClass">
<value>CustomJobProcessor
</value>
</property>
</bean>
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.