<?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: activiti stop working when refresh datasource with new properties in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25066#M10864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find my problem details as attached snapshot&lt;IMG alt="exception after refresh the datasource at rubtime" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/12892_getting_exception_after_refresh_datasource.png" style="width: 620px; height: 223px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Mar 2017 18:19:14 GMT</pubDate>
    <dc:creator>shivam-ver</dc:creator>
    <dc:date>2017-03-02T18:19:14Z</dc:date>
    <item>
      <title>activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25063#M10861</link>
      <description>Hi,I am facing problem when we refresh the datasource&amp;nbsp;in activiti.&amp;nbsp;Initially I set my datasource&amp;nbsp;from properties file on H2 and after server up I show one simple page where I ask for new datasource&amp;nbsp;properties &amp;nbsp;then refresh our application datasource&amp;nbsp;with new new properties bbut activiti&amp;nbsp;stop working</description>
      <pubDate>Thu, 02 Mar 2017 11:48:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25063#M10861</guid>
      <dc:creator>shivam-ver</dc:creator>
      <dc:date>2017-03-02T11:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25064#M10862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your error:&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-weight: normal;"&gt;Error involved in &amp;nbsp;org.activiti.engine.impl.persistence.entity.deploymentEntity.SelectDeploymentByQueryCriteria-inline setting parameters * from ACT_re_deployment RES order by RES.ID asc LIMT? OFFSET ?&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-weight: normal;"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-weight: normal;"&gt;The word 'LIMIT' is spelled incorrectly. Could that be a part of the issue? Have you potentially misspelled the word?&lt;BR /&gt;Also in that same error, your spelling of 'LIMIT' is follow immediately by a question mark, which I believe is incorrect syntax, as there should be a space between them.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-weight: normal;"&gt;If these aren't the problem, could you please include the entire stacktrace?&lt;BR /&gt;&lt;BR /&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 17:24:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25064#M10862</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-03-02T17:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25065#M10863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find my problem details as attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 18:17:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25065#M10863</guid>
      <dc:creator>shivam-ver</dc:creator>
      <dc:date>2017-03-02T18:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25066#M10864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find my problem details as attached snapshot&lt;IMG alt="exception after refresh the datasource at rubtime" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/12892_getting_exception_after_refresh_datasource.png" style="width: 620px; height: 223px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 18:19:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25066#M10864</guid>
      <dc:creator>shivam-ver</dc:creator>
      <dc:date>2017-03-02T18:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25067#M10865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anyone help me regarding this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 17:58:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25067#M10865</guid>
      <dc:creator>shivam-ver</dc:creator>
      <dc:date>2017-03-03T17:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25068#M10866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shivam,&lt;BR /&gt;&lt;BR /&gt;It appears as thought you're using Microsoft SQL Server - is that correct? Which version of it are you using? I'm not sure if the newer versions support 'LIMIT' - but that hasn't previously been a support clause in the Microsoft SQL server dialect.&lt;BR /&gt;&lt;BR /&gt;If this is custom SQL that you've written, you'll want to change it yourself.&lt;BR /&gt;If this is autogenerated SQL by the application, you'll want to take a look at your database configuration and verify that you have your dialect configured properly.&lt;BR /&gt;&lt;BR /&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 18:41:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25068#M10866</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-03-03T18:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25069#M10867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you installed the Activiti Tables in your new database ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are expected to do that correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;There are plenty of resources available online that helps you understand Activiti installation and configuration or try my&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.youtube.com/watch?v=Px2O4aUBEEE" rel="nofollow noopener noreferrer" style="color: #1e88e5; background-color: #ffffff; border: 0px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;Installation tutor here&lt;/A&gt;e&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 15:43:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25069#M10867</guid>
      <dc:creator>sunilkumartk</dc:creator>
      <dc:date>2017-03-05T15:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25070#M10868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain my scenario as below and please help me out.&lt;/P&gt;&lt;P&gt;Objective &amp;nbsp;:I want to switch activiti&amp;nbsp;database at runtime .Initially run on H2 database and when server up I show the simple html page to user where he/she can put new database information for switch their database.Supposed user need to switch from H2 to &amp;nbsp;&lt;SPAN&gt;MSSQL&amp;nbsp;&lt;/SPAN&gt;database &amp;nbsp;then he/she will fill all the required database information in the html form example:&lt;/P&gt;&lt;P&gt;databaseType=&lt;SPAN&gt;MSSQL ,databaseName ="newDatabase",UserName="username",password="password"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As per &amp;nbsp;information I get from HTML&amp;nbsp;form I create a DATASOURCE and set that datasource&amp;nbsp;in processEngineConfiguration and refresh my&amp;nbsp;&lt;/SPAN&gt;activitiConfig file [this file is a &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;@configuration file in spring which run when i refresh the spring context.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and when I set updated datasource in processEngine and refresh activitiConfig.java file then all the activiti table get generated in new database successfully .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BUT my problem is -after refreshing the datasouce with new database then I am trying to deploy my .bpmn file in activiti&amp;nbsp;but it is giving me some error as below.And I also attached one png which show the information after refresh the datasource with new value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;getting error when I execute java code : &amp;nbsp;&lt;STRONG&gt;repositoryService.createDeploymentQuery.List()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;A __default_attr="165093" __jive_macro_name="user" _jive_internal="true" data-id="165093" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/jearles" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;‌ : I also checked MSSQL DIALECT but it is correct. Please see my snapshot for more information.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PLEASE see attached snapshot for more details as attached.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error during job acquisition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error querying database. &amp;nbsp;Cause: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect Syntax 'LIMIT'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The error may exist in org/activiti/db/mapping/entity/Job.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 15:43:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25070#M10868</guid>
      <dc:creator>shivam-ver</dc:creator>
      <dc:date>2017-03-07T15:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25071#M10869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hi ,&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Let me explain my scenario as below and please help me out.&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Objective &amp;nbsp;:I want to switch activiti&amp;nbsp;database at runtime .Initially run on H2 database and when server up I show the simple html page to user where he/she can put new database information for switch their database.Supposed user need to switch from H2 to &amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;MSSQL&amp;nbsp;&lt;/SPAN&gt;database &amp;nbsp;then he/she will fill all the required database information in the html form example:&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;databaseType=&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;MSSQL ,databaseName ="newDatabase",UserName="username",password="password"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;As per &amp;nbsp;information I get from HTML&amp;nbsp;form I create a DATASOURCE and set that datasource&amp;nbsp;in processEngineConfiguration and refresh my&amp;nbsp;&lt;/SPAN&gt;activitiConfig file [this file is a &amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;@configuration file in spring which run when i refresh the spring context.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;and when I set updated datasource in processEngine and refresh activitiConfig.java file then all the activiti table get generated in new database successfully .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;BUT my problem is -after refreshing the datasouce with new database then I am trying to deploy my .bpmn file in activiti&amp;nbsp;but it is giving me some error as below.And I also attached one png which show the information after refresh the datasource with new value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;getting error when I execute java code : &amp;nbsp;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;repositoryService.createDeploymentQuery.List()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;&lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-objectid="165093" data-objecttype="3" href="https://community.alfresco.com/people/jearles" style="color: #1e88e5; background-color: transparent; border: 0px; font-weight: inherit; font-size: 14px; padding: 1px 0px 1px calc(12px + 0.35ex);" rel="nofollow noopener noreferrer"&gt;Jonathan Earles&lt;/A&gt; : I also checked MSSQL DIALECT but it is correct. Please see my snapshot for more information.&lt;IMG alt="" class="j-img-floatstart jive-image image-3 j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/12911_after_refresh_datasource_JobExecutor-datasource.png" style="float: left;" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;IMG alt="error image and jobExecutor Information Image" class="j-img-floatstart image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/12909_getting_exception_after_refresh_datasource.png" style="float: left;" /&gt;&lt;IMG alt="" class="j-img-floatstart jive-image image-2 j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/12910_getting_exception_after_refresh_datasource.png" style="float: left;" /&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;PLEASE see attached snapshot for more details as attached.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Error during job acquisition&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Error querying database. &amp;nbsp;Cause: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect Syntax 'LIMIT'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;The error may exist in org/activiti/db/mapping/entity/Job.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 16:02:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25071#M10869</guid>
      <dc:creator>shivam-ver</dc:creator>
      <dc:date>2017-03-07T16:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25072#M10870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"I want to switch activiti&amp;nbsp;database at runtime .Initially run on H2 database and when server up I show the simple html page to user where he/she can put new database information for switch their database"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no easy way to do this.&lt;BR /&gt;The dbSqlSession is stored as a session object within the ProcessEngineConfiguration.&lt;/P&gt;&lt;P&gt;This effectively makes it a singleton.&lt;/P&gt;&lt;P&gt;As far as I am aware, there is no easy way to override the sqlSession at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, this is just software and if you wanted to implement such behavior, I would look at re-initializing the process engine with the new DB properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I'm not sure why you want to do this, but there is a tenant aware process engine configuration that is documented here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.jorambarrez.be/blog/2015/10/06/multi-tenancy-separate-database-schemas-in-activiti/" title="http://www.jorambarrez.be/blog/2015/10/06/multi-tenancy-separate-database-schemas-in-activiti/" rel="nofollow noopener noreferrer"&gt;Multi-Tenancy with separate database schemas in Activiti | Small steps with big feet&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If this doesnt satisfy your need, then it may be a good start on how to implement your desied behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 17:59:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25072#M10870</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-03-07T17:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25073#M10871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-id="151954" data-objecttype="3" data-orig-content="Greg Harley" data-type="person" href="https://community.alfresco.com/people/gdharley" rel="nofollow noopener noreferrer"&gt;Greg Harley&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for a reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you get a chance to look at&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&amp;nbsp;- re-initializing the process engine with the new DB properties at runTime as you highLight in your above comments.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Please let me know if any work around.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 07:44:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25073#M10871</guid>
      <dc:creator>shivam-ver</dc:creator>
      <dc:date>2017-03-08T07:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25074#M10872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hi &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="151954" data-objecttype="3" href="https://community.alfresco.com/people/gdharley" style="color: #1e88e5; background-color: transparent; border: 0px; font-weight: inherit; font-size: 14px; padding: 1px 0px 1px calc(12px + 0.35ex);" rel="nofollow noopener noreferrer"&gt;Greg Harley&lt;/A&gt;,&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Thanks for a reply.&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;STRONG&gt;Question : &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;have one&lt;STRONG&gt; question regarding &lt;/STRONG&gt;creating activiti&lt;STRONG&gt;&amp;nbsp;database.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;STRONG&gt;I don't want start activiti on server startup.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;STRONG&gt;I want activiti&amp;nbsp;only start when user fill up the Html form with new database properties and click on save button at runtime.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Have you get a chance to look at&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;- &lt;STRONG&gt;re-initializing the process engine with the new DB properties at runTime&lt;/STRONG&gt; as you highLight in your above comments.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Please let me know if any work around.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 07:50:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25074#M10872</guid>
      <dc:creator>shivam-ver</dc:creator>
      <dc:date>2017-03-08T07:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: activiti stop working when refresh datasource with new properties</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25075#M10873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivam,&lt;/P&gt;&lt;P&gt;I have not and am not planning on looking into what would be required to re-initialize the process engine configuration at runtime. I offered the details so that you can look into this yourself should you desire.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 12:59:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-stop-working-when-refresh-datasource-with-new/m-p/25075#M10873</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-03-08T12:59:39Z</dc:date>
    </item>
  </channel>
</rss>

