Enable autocommit on DB connection as there are no explicit commit() calls

master
Vitaliy Filippov 2015-12-08 15:27:34 +03:00
parent a58f9007db
commit 2e7c554b48
2 changed files with 6 additions and 6 deletions

View File

@ -854,9 +854,9 @@ public class InboundMessageProcessor implements Runnable, MessageExchangeReplyLi
}
}
connection = getDatabaseConnection(jndiName);
if (isTransacted && exchange instanceof InOnly) {
connection.setAutoCommit(false);
}
// if (isTransacted && exchange instanceof InOnly) {
connection.setAutoCommit(true);
// }
//final List records = epb.getProcessList();
final List records = (List)mMapInboundExchangesProcessRecords.get(messageId);
for (final Iterator it = records.iterator(); it.hasNext();) {

View File

@ -1123,7 +1123,7 @@ public class OutboundMessageProcessor implements Runnable {
"DBBC_E00627");
throw new Exception(faultString, e);
}
connection.setAutoCommit(false);
connection.setAutoCommit(true);
/* PP: Glassfish does not return a XADataSource and always returns
@ -1435,7 +1435,7 @@ public class OutboundMessageProcessor implements Runnable {
faultCode, faultDetail);
throw new Exception(faultString, e);
}
connection.setAutoCommit(false);
connection.setAutoCommit(true);
cs = executeOutboundProc(inMsg, epb, meta,
connection);
final JDBCNormalizer normalizer =
@ -1714,7 +1714,7 @@ public class OutboundMessageProcessor implements Runnable {
}
if (transaction != null)
connection.setAutoCommit(false);
connection.setAutoCommit(true);
// writeMessage(inMsg, destinationAddress, false);
if (meta.getJDBCOperationInput().getOperationType().
equalsIgnoreCase(