commit 311d312efc2608cf787175aa4d5d64f37064d894
parent b578f7afdc19da666b0f57a93474bad1b28a7ec4
Author: Dan Callaghan <djc@djc.id.au>
Date: Sun, 9 May 2010 18:58:48 +1000
need to close db connections separately
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/deadlit/rdf/util/SdbTemplate.java b/src/main/java/org/deadlit/rdf/util/SdbTemplate.java
@@ -5,10 +5,8 @@ import java.util.Map;
import javax.sql.DataSource;
-import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jmx.export.annotation.ManagedOperation;
import org.springframework.jmx.export.annotation.ManagedResource;
-import org.springframework.stereotype.Component;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.sdb.SDBFactory;
@@ -59,6 +57,7 @@ public class SdbTemplate {
model.close();
}
} finally {
+ store.getConnection().close();
store.close();
}
}