Enable autocommit on DB connection as there are no explicit commit() calls
parent
a58f9007db
commit
2e7c554b48
|
@ -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();) {
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue