Author: alex.guizar(a)jboss.com
Date: 2009-07-27 22:13:14 -0400 (Mon, 27 Jul 2009)
New Revision: 5355
Modified:
jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/persistence/jta/JtaDbPersistenceService.java
jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/resources/jbpm-db2-ds.xml
Log:
set no-tx-separate-pools in db2 data source to address XAER_OUTSIDE
http://www-01.ibm.com/support/docview.wss?uid=swg21175904
Modified:
jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/persistence/jta/JtaDbPersistenceService.java
===================================================================
---
jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/persistence/jta/JtaDbPersistenceService.java 2009-07-28
01:00:04 UTC (rev 5354)
+++
jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/java/org/jbpm/persistence/jta/JtaDbPersistenceService.java 2009-07-28
02:13:14 UTC (rev 5355)
@@ -69,9 +69,9 @@
public void beginTransaction() {
try {
- log.debug("beginning " + transaction);
JtaDbPersistenceServiceFactory jtaFactory = (JtaDbPersistenceServiceFactory)
persistenceServiceFactory;
transaction = jtaFactory.getUserTransaction();
+ log.debug("beginning " + transaction);
transaction.begin();
}
catch (NotSupportedException e) {
Modified: jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/resources/jbpm-db2-ds.xml
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/resources/jbpm-db2-ds.xml 2009-07-28
01:00:04 UTC (rev 5354)
+++ jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/resources/jbpm-db2-ds.xml 2009-07-28
02:13:14 UTC (rev 5355)
@@ -13,6 +13,8 @@
<user-name>${jdbc.db2.username}</user-name>
<password>${jdbc.db2.password}</password>
+ <!-- isolate connections used with JTA from those used without JTA -->
+ <no-tx-separate-pools />
<!-- disable transaction interleaving -->
<track-connection-by-tx />
<!-- force XAResource.isSameRM(XAResource) to return false -->