comparison artifact-database/src/main/java/de/intevation/artifactdatabase/db/DBConnection.java @ 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 86dd32b45d87
children
comparison
equal deleted inserted replaced
336:2c968defd878 337:6d239c58c636
94 log.debug(" url : " + url); 94 log.debug(" url : " + url);
95 log.debug(" user : " + user); 95 log.debug(" user : " + user);
96 } 96 }
97 97
98 try { 98 try {
99 Class.forName(driver); 99 synchronized (DBConnection.class) {
100 Class.forName(driver);
101 }
100 } 102 }
101 catch (ClassNotFoundException cnfe) { 103 catch (ClassNotFoundException cnfe) {
102 log.error("cannot load driver", cnfe); 104 log.error("cannot load driver", cnfe);
103 return null; 105 return null;
104 } 106 }

http://dive4elements.wald.intevation.org