Commit c558192e authored by maoo's avatar maoo
Browse files

Issue #72 - improve JDBC connection with H2 database by setting some connection parameters

git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@376 04253f4f-3451-0410-a141-5562f1e59037
parent 6cf79d51
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
        <Arg>jdbc/dataSource</Arg>
        <Arg>
            <New class="org.h2.jdbcx.JdbcDataSource">
                <Set name="URL">jdbc:h2:${alfresco.data.location}/h2_data/${alfresco.db.name}</Set>
                <Set name="URL">jdbc:h2:${alfresco.data.location}/h2_data/${alfresco.db.name};${alfresco.db.params}</Set>
                <Set name="User">${alfresco.db.username}</Set>
                <Set name="Password">${alfresco.db.password}</Set>
            </New>
+1 −0
Original line number Diff line number Diff line
@@ -92,6 +92,7 @@
		<alfresco.db.name>alf_jetty</alfresco.db.name>
		<alfresco.db.username>alfresco</alfresco.db.username>
		<alfresco.db.password>alfresco</alfresco.db.password>
        <alfresco.db.params>MODE=PostgreSQL;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=TRUE</alfresco.db.params>
		<webapp.log.level>error</webapp.log.level>
		<webapp.log.dir></webapp.log.dir>
		<!--  End of testing webapp specific properties -->
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ index.recovery.mode=AUTO
integrity.failOnError=true

db.driver=org.h2.Driver
db.url=jdbc:h2:${alfresco.data.location}/h2_data/${alfresco.db.name}
db.url=jdbc:h2:${alfresco.data.location}/h2_data/${alfresco.db.name};${alfresco.db.params}
db.username=${alfresco.db.username}
db.password=${alfresco.db.password}
db.pool.initial=10