Revision 3864
Added by Jing Tao over 16 years ago
src/edu/ucsb/nceas/metacat/EML201DocumentCorrector.java | ||
---|---|---|
47 | 47 |
{ |
48 | 48 |
|
49 | 49 |
//checkout the dbconnection |
50 |
dbconn = DBConnectionPool.getDBConnection("DBQuery.findDocuments");
|
|
50 |
dbconn = DBConnectionPool.getDBConnection("EML201DocumentCorrector.run");
|
|
51 | 51 |
serialNumber = dbconn.getCheckOutSerialNumber(); |
52 | 52 |
Statement deletingStatement = dbconn.createStatement(); |
53 | 53 |
|
... | ... | |
65 | 65 |
|
66 | 66 |
//close statement and connection |
67 | 67 |
deletingStatement.close(); |
68 |
dbconn.close(); |
|
68 |
//dbconn.close();
|
|
69 | 69 |
success = true; |
70 | 70 |
} |
71 | 71 |
catch (Exception ee) |
72 | 72 |
{ |
73 |
logMetacat.error("Exception in DBQuery.findDocuments: "
|
|
73 |
logMetacat.error("EML201DocumentCorrector.run: "
|
|
74 | 74 |
+ ee.getMessage()); |
75 | 75 |
ee.printStackTrace(); |
76 | 76 |
} |
Also available in: Unified diff
Check in to cvs head. Don't close db connection before returning the connection pool.