From cea5b223198330fa8ee49139d12e068e60eef616 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Thu, 14 Apr 2011 16:42:01 +0200 Subject: SONAR-2359 Most of properties sonar.jdbc.* should not be required when JDBC datasource is loaded from JNDI --- .../src/main/java/org/sonar/jpa/session/AbstractDatabaseConnector.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sonar-core') diff --git a/sonar-core/src/main/java/org/sonar/jpa/session/AbstractDatabaseConnector.java b/sonar-core/src/main/java/org/sonar/jpa/session/AbstractDatabaseConnector.java index 3dcc9908278..3ba4cbc5d47 100644 --- a/sonar-core/src/main/java/org/sonar/jpa/session/AbstractDatabaseConnector.java +++ b/sonar-core/src/main/java/org/sonar/jpa/session/AbstractDatabaseConnector.java @@ -24,6 +24,7 @@ import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sonar.api.database.DatabaseProperties; +import org.sonar.api.utils.Logs; import org.sonar.jpa.dialect.Dialect; import org.sonar.jpa.dialect.DialectRepository; import org.sonar.jpa.entity.SchemaMigration; @@ -106,6 +107,7 @@ public abstract class AbstractDatabaseConnector implements DatabaseConnector { throw new DatabaseException(databaseVersion, SchemaMigration.LAST_VERSION); } if (upToDate) { + Logs.INFO.info("Initializing Hibernate"); factory = createEntityManagerFactory(); operational = true; } -- cgit v1.2.3