<?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 How to customize the jobexecutor in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-customize-the-jobexecutor/m-p/122474#M86254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on a multi-tenant application which make use of spring `UserCredentialsDataSourceAdapter`, so that each tenant will have an independent database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also have independent processEngine for each tenant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since there are lot of tenants(500+) and each tenant have its own processEngine there are lot of jobExecutors active in the application, which is causing a performance bottleneck for us. All I want to do is throttle the jobExecutors using an already existing mechanism.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of the jobExecutor running self in every x seconds, I want to trigger the jobExecutor externally using some custom logic(it will take care of throttling).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I achieve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the way I'm looking at is to get hold of the the &lt;/SPAN&gt;&lt;EM&gt;commandExecutor&lt;/EM&gt;&lt;SPAN&gt; from the &lt;/SPAN&gt;&lt;EM&gt;processEngine&lt;/EM&gt;&lt;SPAN&gt; (using reflection) and then run the &lt;/SPAN&gt;&lt;EM&gt;AcquireJobsCmd&lt;/EM&gt;&lt;SPAN&gt; command to get the pending jobs then call the &lt;/SPAN&gt;&lt;EM&gt;ExecuteJobsRunnable&lt;/EM&gt;&lt;SPAN&gt; with appropriate parameters (I cannot use the default &lt;/SPAN&gt;&lt;EM&gt;ExecuteJobsRunnable&lt;/EM&gt;&lt;SPAN&gt; since it uses a `JobExecutor` and I don't have one).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Dec 2012 04:59:44 GMT</pubDate>
    <dc:creator>arunpjohny</dc:creator>
    <dc:date>2012-12-31T04:59:44Z</dc:date>
    <item>
      <title>How to customize the jobexecutor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-customize-the-jobexecutor/m-p/122474#M86254</link>
      <description>I'm working on a multi-tenant application which make use of spring `UserCredentialsDataSourceAdapter`, so that each tenant will have an independent database. I also have independent processEngine for each tenant.Since there are lot of tenants(500+) and each tenant have its own processEngine there ar</description>
      <pubDate>Mon, 31 Dec 2012 04:59:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-customize-the-jobexecutor/m-p/122474#M86254</guid>
      <dc:creator>arunpjohny</dc:creator>
      <dc:date>2012-12-31T04:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize the jobexecutor</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-customize-the-jobexecutor/m-p/122475#M86255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The whole JobExecutor is pluggable: you can inject your own class (or extension of the default one) in the process engine configuration. That way, you have full control of which logic gets executed when and how.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 09:35:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-customize-the-jobexecutor/m-p/122475#M86255</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-01-03T09:35:20Z</dc:date>
    </item>
  </channel>
</rss>

