<?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 Re: Adding jobs to Scheduler - schedulerFactory bean in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-jobs-to-scheduler-schedulerfactory-bean/m-p/14861#M6448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to define a bean into which you would then inject the scheduler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can then use the scheduler bean to schedule jobs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(You will get an org.quartz.Scheduler as this may not be clear)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use another Scheduler (identified by name, rather than the default) by defining another SchedulerFactoryBean. See the documentation for SchedulerFactoryBean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get hold of other beans by name if your bean implements the BeanFactoryAware interface. Then you get access to the BeanFactory. Most beans are configured by injection rather than looking up beans this way. See the interfaces in the Spring org.springframework.beans.factory package for more details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Mar 2006 10:10:24 GMT</pubDate>
    <dc:creator>andy</dc:creator>
    <dc:date>2006-03-17T10:10:24Z</dc:date>
    <item>
      <title>Adding jobs to Scheduler - schedulerFactory bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-jobs-to-scheduler-schedulerfactory-bean/m-p/14858#M6445</link>
      <description>Hi,I am looking into implementing some custom functionality involving the addition of jobs to the scheduler (quartz).&amp;nbsp; In the scheduled-jobs-context.xml file there is a bean - "schedulerFactory" as shown below&amp;nbsp;&amp;nbsp; &amp;lt;!– Scheduled tasks –&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="schedulerFactory" class="org.springframewor</description>
      <pubDate>Thu, 16 Mar 2006 06:09:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-jobs-to-scheduler-schedulerfactory-bean/m-p/14858#M6445</guid>
      <dc:creator>jamen</dc:creator>
      <dc:date>2006-03-16T06:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding jobs to Scheduler - schedulerFactory bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-jobs-to-scheduler-schedulerfactory-bean/m-p/14859#M6446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The normal way is to schedule jobs in the config.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In code, you can obtain the bean and schudule anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The scheduler is not exposed as a service or web service at the moment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 13:07:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-jobs-to-scheduler-schedulerfactory-bean/m-p/14859#M6446</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2006-03-16T13:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding jobs to Scheduler - schedulerFactory bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-jobs-to-scheduler-schedulerfactory-bean/m-p/14860#M6447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am familiar with adding jobs through the config, but in particular case I will be doing it through code.&amp;nbsp; Out of interest, are there any development resources on how to get the relevant beans in code (I couldn't find anything in the wiki so far).&amp;nbsp; I am unsure of the application context or the specific classes to use to do a getBean() call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 22:14:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-jobs-to-scheduler-schedulerfactory-bean/m-p/14860#M6447</guid>
      <dc:creator>jamen</dc:creator>
      <dc:date>2006-03-16T22:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding jobs to Scheduler - schedulerFactory bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-jobs-to-scheduler-schedulerfactory-bean/m-p/14861#M6448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to define a bean into which you would then inject the scheduler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can then use the scheduler bean to schedule jobs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(You will get an org.quartz.Scheduler as this may not be clear)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use another Scheduler (identified by name, rather than the default) by defining another SchedulerFactoryBean. See the documentation for SchedulerFactoryBean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get hold of other beans by name if your bean implements the BeanFactoryAware interface. Then you get access to the BeanFactory. Most beans are configured by injection rather than looking up beans this way. See the interfaces in the Spring org.springframework.beans.factory package for more details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 10:10:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-jobs-to-scheduler-schedulerfactory-bean/m-p/14861#M6448</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2006-03-17T10:10:24Z</dc:date>
    </item>
  </channel>
</rss>

