Mercurial > dive4elements > framework
changeset 337:6d239c58c636
Fixed flys/issue255
artifacts/trunk@2907 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 07 Oct 2011 15:32:58 +0000 |
parents | 2c968defd878 |
children | ec5c7e54cae1 |
files | ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/db/DBConnection.java |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Sep 23 08:42:17 2011 +0000 +++ b/ChangeLog Fri Oct 07 15:32:58 2011 +0000 @@ -1,3 +1,10 @@ +2011-10-07 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + Fixed flys/issue255 + + * artifact-database/src/main/java/de/intevation/artifactdatabase/db/DBConnection.java(getDataSource()): + Serialized the loading of database drivers. + 2011-09-23 Felix Wolfsteller <felix.wolfsteller@intevation.de> Fix debug helper toString(Node).
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/db/DBConnection.java Fri Sep 23 08:42:17 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/db/DBConnection.java Fri Oct 07 15:32:58 2011 +0000 @@ -96,7 +96,9 @@ } try { - Class.forName(driver); + synchronized (DBConnection.class) { + Class.forName(driver); + } } catch (ClassNotFoundException cnfe) { log.error("cannot load driver", cnfe);