Make it easier to launch HSQLDB server - just use -Dbatch.jdbc.url= on the command line.
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
# for HSQLDB:
|
||||
batch.jdbc.driver=org.hsqldb.jdbcDriver
|
||||
batch.jdbc.url=jdbc:hsqldb:mem:testdb;sql.enforce_strict_size=true
|
||||
# use this one for a separate server process (so you can inspect the results)
|
||||
# use this one for a separate server process so you can inspect the results
|
||||
# (or add it to system properties with -D to override at run time).
|
||||
# batch.jdbc.url=jdbc:hsqldb:hsql://localhost:9005/samples
|
||||
batch.jdbc.user=sa
|
||||
batch.jdbc.password=
|
||||
@@ -23,11 +24,3 @@ batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.Hs
|
||||
# Bean Properties for override
|
||||
# for HSQLDB:
|
||||
incrementerParent.columnName=ID
|
||||
|
||||
# Switch Dao implementations
|
||||
# batch.jobdao=hibernateJobDao
|
||||
# batch.stepdao=hibernateStepDao
|
||||
# batch.transaction.manager=hibernateTransactionManager
|
||||
batch.jobdao=sqlJobDao
|
||||
batch.stepdao=sqlStepDao
|
||||
batch.transaction.manager=sqlTransactionManager
|
||||
|
||||
@@ -28,13 +28,14 @@
|
||||
<bean class="java.lang.System" factory-method="getProperties"/>
|
||||
</property>
|
||||
<property name="ignoreInvalidKeys" value="true" />
|
||||
<property name="order" value="1"/>
|
||||
<property name="order" value="2"/>
|
||||
</bean>
|
||||
|
||||
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||
<property name="location" value="classpath:batch.properties" />
|
||||
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>
|
||||
<property name="ignoreUnresolvablePlaceholders" value="false" />
|
||||
<property name="order" value="2"/>
|
||||
<property name="order" value="1"/>
|
||||
</bean>
|
||||
|
||||
<bean id="incrementerParent" class="${batch.database.incrementer.class}" abstract="true">
|
||||
|
||||
Reference in New Issue
Block a user