Skip to content

Commit

Permalink
BZ-1161574 - 'java.lang.RuntimeException: Process instance XXX is dis…
Browse files Browse the repository at this point in the history
…connected.' with SingletonRuntimeManager without CMT/BMT

(cherry picked from commit f082b82)
  • Loading branch information
mswiderski committed Nov 14, 2014
1 parent 2d0973f commit 49f1d49
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -75,7 +75,10 @@ public SingletonRuntimeManager(RuntimeEnvironment environment, SessionFactory fa
}

public void init() {

if (System.getProperty("org.kie.tx.lock.enabled") == null &&
((SimpleRuntimeEnvironment)environment).getEnvironmentTemplate().get("TRANSACTION_LOCK_ENABLED") == null) {
((SimpleRuntimeEnvironment)environment).getEnvironmentTemplate().set("TRANSACTION_LOCK_ENABLED", "true");
}
// TODO should we proxy/wrap the ksession so we capture dispose.destroy method calls?
String location = getLocation();
Integer knownSessionId = getPersistedSessionId(location, identifier);
Expand Down

0 comments on commit 49f1d49

Please sign in to comment.