<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Alfresco 6.1 scheduled job in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-6-1-scheduled-job/m-p/112874#M31422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to create a scheduled job for alfresco 6.1. I am getting the below error for the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Caused by: java.lang.ClassNotFoundException: org.springframework.scheduling.quartz.JobDetailBean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="org.alfresco.tutorial.scheduledjob.actions.ScheduledJobExecuter"&lt;BR /&gt; class="org.alfresco.tutorial.scheduledjob.actions.ScheduledJobExecuter"&amp;gt;&lt;BR /&gt; &amp;lt;property name="serviceRegistry"&amp;gt;&lt;BR /&gt; &amp;lt;ref bean="ServiceRegistry" /&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="org.alfresco.tutorial.scheduledjob.jobDetail"&lt;BR /&gt; class="org.springframework.scheduling.quartz.JobDetailFactoryBean"&amp;gt;&lt;BR /&gt; &amp;lt;property name="jobClass"&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;org.alfresco.tutorial.scheduledjob.jobs.ScheduledJob&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="jobDataAsMap"&amp;gt;&lt;BR /&gt; &amp;lt;map&amp;gt;&lt;BR /&gt; &amp;lt;entry key="jobExecuter"&amp;gt;&lt;BR /&gt; &amp;lt;ref bean="org.alfresco.tutorial.scheduledjob.actions.ScheduledJobExecuter" /&amp;gt;&lt;BR /&gt; &amp;lt;/entry&amp;gt;&lt;BR /&gt; &amp;lt;entry key="jobLockService"&amp;gt;&lt;BR /&gt; &amp;lt;ref bean="jobLockService" /&amp;gt;&lt;BR /&gt; &amp;lt;/entry&amp;gt;&lt;BR /&gt; &amp;lt;/map&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="org.alfresco.tutorial.scheduledjob.trigger"&lt;BR /&gt; class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"&amp;gt;&lt;BR /&gt; &amp;lt;property name="jobDetail"&amp;gt;&lt;BR /&gt; &amp;lt;ref bean="org.alfresco.tutorial.scheduledjob.jobDetail" /&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="cronExpression"&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;${org.alfresco.tutorial.scheduledjob.cronexpression}&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="startDelay"&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;${org.alfresco.tutorial.scheduledjob.cronstartdelay}&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"&amp;gt;&lt;BR /&gt; &amp;lt;property name="triggers"&amp;gt;&lt;BR /&gt; &amp;lt;list&amp;gt;&lt;BR /&gt; &amp;lt;ref bean="org.alfresco.tutorial.scheduledjob.trigger"/&amp;gt;&lt;BR /&gt; &amp;lt;/list&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the class to&amp;nbsp;org.springframework.scheduling.quartz.JobDetailFactoryBean &amp;amp;&amp;nbsp;org.springframework.scheduling.quartz.CronTriggerFactoryBean, then the class not found exception is gone but the job is not running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone created a scheduled job alfresco 6.1 SDK 4?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2019 06:02:10 GMT</pubDate>
    <dc:creator>sandhya_nair</dc:creator>
    <dc:date>2019-08-30T06:02:10Z</dc:date>
    <item>
      <title>Alfresco 6.1 scheduled job</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-6-1-scheduled-job/m-p/112874#M31422</link>
      <description>Hi,I want to create a scheduled job for alfresco 6.1. I am getting the below error for the class.Caused by: java.lang.ClassNotFoundException: org.springframework.scheduling.quartz.JobDetailBean&amp;lt;bean id="org.alfresco.tutorial.scheduledjob.actions.ScheduledJobExecuter" class="org.alfresco.tutorial.</description>
      <pubDate>Fri, 30 Aug 2019 06:02:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-6-1-scheduled-job/m-p/112874#M31422</guid>
      <dc:creator>sandhya_nair</dc:creator>
      <dc:date>2019-08-30T06:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 6.1 scheduled job</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-6-1-scheduled-job/m-p/112875#M31423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found the solution for this. the below link is not an updated one.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://docs.alfresco.com/6.1/references/dev-extension-points-scheduled-jobs.html" title="https://docs.alfresco.com/6.1/references/dev-extension-points-scheduled-jobs.html" rel="nofollow noopener noreferrer"&gt;Scheduled Jobs | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below configration is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&amp;lt;beans xmlns="http://www.springframework.org/schema/beans"&lt;BR /&gt; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&lt;BR /&gt; xsi:schemaLocation="http://www.springframework.org/schema/beans&lt;BR /&gt; http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="schedulerAccessor"&lt;BR /&gt; class="org.springframework.scheduling.quartz.SchedulerAccessorBean"&amp;gt;&lt;BR /&gt; &amp;lt;property name="scheduler" ref="schedulerFactory" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="triggers"&amp;gt;&lt;BR /&gt; &amp;lt;list&amp;gt;&lt;BR /&gt; &amp;lt;ref bean="testJobTrigger" /&amp;gt;&lt;BR /&gt; &amp;lt;/list&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="testJobTrigger"&lt;BR /&gt; class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"&amp;gt;&lt;BR /&gt; &amp;lt;property name="cronExpression" value="0 0/2 * * * ?" /&amp;gt; &lt;BR /&gt; &amp;lt;property name="startDelay" value="${system.cronJob.startDelayMilliseconds}" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="jobDetail"&amp;gt;&lt;BR /&gt; &amp;lt;bean class="org.springframework.scheduling.quartz.JobDetailFactoryBean"&amp;gt;&lt;BR /&gt; &amp;lt;property name="jobClass" value="org.alfresco.tutorial.scheduledjob.actions.ScheduledJobExecuter" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="jobDataAsMap"&amp;gt;&lt;BR /&gt; &amp;lt;map&amp;gt;&lt;BR /&gt; &amp;lt;entry key="jobLockService"&amp;gt;&lt;BR /&gt; &amp;lt;ref bean="jobLockService" /&amp;gt;&lt;BR /&gt; &amp;lt;/entry&amp;gt;&lt;BR /&gt; &amp;lt;/map&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/beans&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 07:40:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-6-1-scheduled-job/m-p/112875#M31423</guid>
      <dc:creator>sandhya_nair</dc:creator>
      <dc:date>2019-08-30T07:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 6.1 scheduled job</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-6-1-scheduled-job/m-p/112876#M31424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alfresco 6.x has updated Quartz libraries. This has changed how jobs need to be registered a bit, so most of the examples you can find on the internet won't work because they address versions of Alfresco before 6.x. You can look at the Alfresco source code itself to find how &lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/scheduled-jobs-context.xml#L13" rel="nofollow noopener noreferrer"&gt;jobs can be registered now&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 07:46:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-6-1-scheduled-job/m-p/112876#M31424</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-08-30T07:46:37Z</dc:date>
    </item>
  </channel>
</rss>

