Revision: 1827
Author: [email protected]
Date: Mon Feb 1 01:07:02 2010
Log: Removed unwanted connection close on initialisation for db type RDB.
Reset default database type to RDB to make sure the application works the
same as previously by default.
update issue 116
Default db type set to RDB to make sure application uses the same
configuration as previously by default.
This can be changed with the setting simal.db.type, eg on the command-line:
-Dsimal.db.type=TDB
http://code.google.com/p/simal/source/detail?r=1827
Modified:
/trunk/uk.ac.osswatch.simal.core/src/main/java/uk/ac/osswatch/simal/model/jena/simal/JenaDatabaseSupport.java
/trunk/uk.ac.osswatch.simal.core/src/main/resources/default.simal.properties
=======================================
---
/trunk/uk.ac.osswatch.simal.core/src/main/java/uk/ac/osswatch/simal/model/jena/simal/JenaDatabaseSupport.java
Sun Jan 31 14:02:00 2010
+++
/trunk/uk.ac.osswatch.simal.core/src/main/java/uk/ac/osswatch/simal/model/jena/simal/JenaDatabaseSupport.java
Mon Feb 1 01:07:02 2010
@@ -18,8 +18,6 @@
package uk.ac.osswatch.simal.model.jena.simal;
-import java.sql.SQLException;
-
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -124,12 +122,7 @@
// create or open the default model
Model model = maker.createDefaultModel();
- try {
- conn.close();
- } catch (SQLException e) {
- LOGGER.warn("Could not close connection; " + e.getMessage());
- }
-
+
return model;
}
=======================================
---
/trunk/uk.ac.osswatch.simal.core/src/main/resources/default.simal.properties
Sun Jan 31 14:02:00 2010
+++
/trunk/uk.ac.osswatch.simal.core/src/main/resources/default.simal.properties
Mon Feb 1 01:07:02 2010
@@ -18,7 +18,7 @@
simal.repository.filename=simal
simal.doap.filestore=simalDOAPFilestore
# Database type; one of RDB, SDB, TDB
-simal.db.type=SDB
+simal.db.type=RDB
#simal.instance.id=[set to a human readable world unique identifier for
this instance of Simal , leave blank to have a unique identifier assigned
automatically]
simal.local.properties.path=local.simal.properties
--
You received this message because you are subscribed to the Google Groups "Simal
Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simal-commits?hl=en.