Avoid log statements between resource opening and returning

Issue: SPR-17559

(cherry picked from commit 7854b7ac40)
This commit is contained in:
Juergen Hoeller
2018-12-03 23:50:50 +01:00
parent 191a2d3f25
commit 9d504c8e1d
3 changed files with 7 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2012 the original author or authors.
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -127,7 +127,6 @@ public abstract class ConnectionFactoryUtils {
Connection con = cf.getConnection();
if (TransactionSynchronizationManager.isSynchronizationActive()) {
logger.debug("Registering transaction synchronization for CCI Connection");
conHolder = new ConnectionHolder(con);
conHolder.setSynchronizedWithTransaction(true);
TransactionSynchronizationManager.registerSynchronization(new ConnectionSynchronization(conHolder, cf));