<?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: Timer jobs not running after restarting my server. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26244#M13027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply but I think you misunderstood my question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The job executor is correctly set as &lt;/SPAN&gt;&lt;CODE&gt;&amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt; in activiti.cfg.xml and all my timers are running as expected, as I can confirm from the ACT_RU_JOB table. However, once I shut down my JBoss server JobExecutor stops running, as expected. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, how do I kick-start JobExecutor when I restart my server? I'm thinking there should be some method I can call, such as ManagementService.startJobExecutor(). Otherwise all my timers will not run after a server restart.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Mar 2011 14:21:40 GMT</pubDate>
    <dc:creator>gerry_fisher</dc:creator>
    <dc:date>2011-03-02T14:21:40Z</dc:date>
    <item>
      <title>Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26242#M13025</link>
      <description>Can anyone please advise me on how to get my timer jobs running again after restarting my server.Essentially, my application (which contains Activiti) is deployed as a .war file on JBoss. The interesting thing is this: as soon as I complete one of the tasks that has a timer attached, the JobExecutor</description>
      <pubDate>Wed, 02 Mar 2011 11:03:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26242#M13025</guid>
      <dc:creator>gerry_fisher</dc:creator>
      <dc:date>2011-03-02T11:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26243#M13026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have the job executor running? See &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#jobExecutorConfiguration" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#jobExecutorConfiguration&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When using timers, the job executor activation property should be 'true'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 13:47:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26243#M13026</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-03-02T13:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26244#M13027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply but I think you misunderstood my question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The job executor is correctly set as &lt;/SPAN&gt;&lt;CODE&gt;&amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt;&lt;/CODE&gt;&lt;SPAN&gt; in activiti.cfg.xml and all my timers are running as expected, as I can confirm from the ACT_RU_JOB table. However, once I shut down my JBoss server JobExecutor stops running, as expected. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, how do I kick-start JobExecutor when I restart my server? I'm thinking there should be some method I can call, such as ManagementService.startJobExecutor(). Otherwise all my timers will not run after a server restart.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 14:21:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26244#M13027</guid>
      <dc:creator>gerry_fisher</dc:creator>
      <dc:date>2011-03-02T14:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26245#M13028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If your config is as above, the jobexecutor is activated when the engine boots.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe your engine is lazily initialised? Best practice is to initialise it in eg a ServletContextListener (or something alike depending on the framework you like)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2011 17:31:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26245#M13028</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-03-02T17:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26246#M13029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm afraid my point is lost yet again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I've got a bunch of tasks, each with an attached timer running in its own thread;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I shut down my server thus killing off all my timer threads;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I restart my server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I restart my timer threads?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each timer has a record in table ACT_RU_JOB. When I restart my server I need to tell some piece of code to go read that table and start a timer thread for each record it finds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment the only way to restart all the timer threads is to complete one of the tasks that's got a timer attached to it. Once I do that I can confirm that the timers are now running because the job records in ACT_RU_JOB are now being updated whenever a timer fires an event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reference to lazy initialization is unclear. As far as I'm aware the engine is entirely passive, with the exception of any running timer threads. In any case, if the engine isn't passive, how do I activate it when my I restart my server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I've got another issue with timers for which I am going through your source code in order to find a solution. With a bit of luck I'll find solutions for both issues as I delve into the code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 09:37:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26246#M13029</guid>
      <dc:creator>gerry_fisher</dc:creator>
      <dc:date>2011-03-03T09:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26247#M13030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm… &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you mean by "each with an attached timer running in its own thread"? Do you have your own timer mechanism? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because activiti timers work in a different way - there is one thread, called jobAcquisitionThread which periodically checks if there are due jobs, and executes them (if there are any). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And this thread is started by JobExecutor.start() method, which in turn is called by ProcessEngineImpl constructor. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So if ProcessEngineImpl is created, with jobExecutorActivate=true, then timers should be fired at appriopriate times.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At least this is my understanding…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 13:36:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26247#M13030</guid>
      <dc:creator>mproch</dc:creator>
      <dc:date>2011-03-03T13:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26248#M13031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maciek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My understanding was that each timer was running in its own thread. I seem to be wrong in that respect. However, that misconception doesn't detract from my original question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got jobAcquisitionThread running and my timers fire correctly. I shut down my server thus killing off jobAcquisitionThread. When I restart my server I need&amp;nbsp; jobAcquisitionThread to start running again. You say JobExecutor.start() is responsible for launching jobAcquisitionThread and, according to the documentation, "By default, the JobExecutor is activated when the process engine boots." The question then is: What method in the API do I call to boot the process engine?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 15:21:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26248#M13031</guid>
      <dc:creator>gerry_fisher</dc:creator>
      <dc:date>2011-03-03T15:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26249#M13032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If&amp;nbsp; jobExecutorActivate=true, then jobExecutor is started when ProcessEngineImpl is constructed, see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://svn.codehaus.org/activiti/activiti/trunk/modules/activiti-engine/src/main/java/org/activiti/engine/impl/ProcessEngineImpl.java" rel="nofollow noopener noreferrer"&gt;https://svn.codehaus.org/activiti/activiti/trunk/modules/activiti-engine/src/main/java/org/activiti/engine/impl/ProcessEngineImpl.java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you initialize your engine? If you use spring configuration more or less like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="transactionManager" ref="transactionManager"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="true"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="processEngineConfiguration" ref="processEngineConfiguration"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt; then there is small caveat: processEngine is not created when applicationContext is created…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's only factoryBean that is created, but processEngine itself is created only when it's referenced - e.g. by invoking REST API, or in some other way. The way to force processEngine to be eagerly created is to add for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService"/&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't know if this is your case - but I remember having some problems like you describe, and it was spring lazy initialization to blame.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 16:06:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26249#M13032</guid>
      <dc:creator>mproch</dc:creator>
      <dc:date>2011-03-03T16:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26250#M13033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maciek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply. I shall explore your suggestion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Restarting timers is such a self-evident requirement for an Activiti engine and I am surprised by the deathly silence from the team.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once again, thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 08:55:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26250#M13033</guid>
      <dc:creator>gerry_fisher</dc:creator>
      <dc:date>2011-03-04T08:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26251#M13034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Restarting timers is such a self-evident requirement for an Activiti engine and I am surprised by the deathly silence from the team.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The job executor (ie which execute timers is ALWAYS started when you have put your config on true, as Maciek explained).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for our deathly silence, I already advised you to eagerly init your process engine in one of my first replies (as Maciek also advises in his last post):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Maybe your engine is lazily initialised? Best practice is to initialise it in eg a ServletContextListener (or something alike depending on the framework you like)&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 16:00:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26251#M13034</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-03-04T16:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26252#M13035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For the benefit of anyone reading this thread and looking for a non-Spring/non-xml solution all you need is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public void startActivitiEngine() {&lt;BR /&gt;&amp;nbsp; ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("activiti.cfg.xml")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .setProcessEngineName("activiti-engine")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .buildProcessEngine();&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; logger.info("Activiti engine started.");&lt;BR /&gt; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;We've placed the method inside a class that gets called by our bootstrap framework which is responsible for restarting a variety of services whenever we restart the server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 17:00:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26252#M13035</guid>
      <dc:creator>gerry_fisher</dc:creator>
      <dc:date>2011-03-04T17:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26253#M13036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;For the benefit of anyone reading this thread and looking for a non-Spring/non-xml solution all you need is:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public void startActivitiEngine() {&lt;BR /&gt;&amp;nbsp; ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("activiti.cfg.xml")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .setProcessEngineName("activiti-engine")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .buildProcessEngine();&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; logger.info("Activiti engine started.");&lt;BR /&gt; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;We've placed the method inside a class that gets called by our bootstrap framework which is responsible for restarting a variety of services whenever we restart the server.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;How did you get the engine running in the first place? If you do not do something like you describe now, it won't run at all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 18:15:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26253#M13036</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-03-04T18:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26254#M13037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I think it is actually possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look at &lt;/SPAN&gt;&lt;A href="https://svn.codehaus.org/activiti/activiti/trunk/modules/activiti-engine/src/main/java/org/activiti/engine/ProcessEngines.java" rel="nofollow noopener noreferrer"&gt;https://svn.codehaus.org/activiti/activiti/trunk/modules/activiti-engine/src/main/java/org/activiti/engine/ProcessEngines.java&lt;/A&gt;&lt;SPAN&gt; you'll see that ProcessEngines.getDefaultEngine() will actually create processEngine if it's not already created… - so this is lazy initialization that Joram is talking about. And if you don't call it explicitely during bootstrap, it will be called e.g. when you invoke some REST API - that's why jobExecutor was started only when someone displayed tasks page. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this behaviour indeed can be somewhat confusing - starting engine more or less automagically based on configuration details.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 19:16:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26254#M13037</guid>
      <dc:creator>mproch</dc:creator>
      <dc:date>2011-03-04T19:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26255#M13038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You mean he was lucky initially because he did some requests to the api himself? That kind of lazy… Ok, makes sense&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 19:56:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26255#M13038</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-03-04T19:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Timer jobs not running after restarting my server.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26256#M13039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maciek, Ronald,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for both your comments. I guess I was doing lazy initialization all along without thinking about it. Just create a task and the engine gets started as a consequence. Therefore, if my server went down and then came back up again, the only way my engine would start running again was if I created another task. But that wasn't satisfactory since task creation is a random user event whereas I needed the JobExecutor to start running straightaway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 09:04:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-jobs-not-running-after-restarting-my-server/m-p/26256#M13039</guid>
      <dc:creator>gerry_fisher</dc:creator>
      <dc:date>2011-03-07T09:04:26Z</dc:date>
    </item>
  </channel>
</rss>

