Externalise lob handler reference
This commit is contained in:
@@ -15,6 +15,9 @@ batch.database.vendor=HSQLDB
|
||||
batch.schema.script=schema-hsqldb.sql
|
||||
batch.business.schema.script=business-schema-hsqldb.sql
|
||||
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.HsqlMaxValueIncrementer
|
||||
batch.lob.handler.class=org.springframework.jdbc.support.lob.DefaultLobHandler
|
||||
batch.football.job.commit.interval=2
|
||||
|
||||
|
||||
# Other platforms:
|
||||
# org.springframework.jdbc.support.incrementer.DB2SequenceMaxValueIncrementer
|
||||
|
||||
@@ -58,6 +58,8 @@
|
||||
<property name="ignoreUnresolvablePlaceholders" value="false" />
|
||||
<property name="order" value="1" />
|
||||
</bean>
|
||||
|
||||
<bean id="lobHandler" class="${batch.lob.handler.class}"/>
|
||||
|
||||
<bean id="incrementerParent"
|
||||
class="${batch.database.incrementer.class}" abstract="true">
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
<aop:scoped-proxy />
|
||||
<property name="dataSource"
|
||||
ref="dataSource" />
|
||||
<property name="lobHandler"
|
||||
ref="lobHandler" />
|
||||
<property name="incrementer">
|
||||
<bean parent="incrementerParent">
|
||||
<property name="incrementerName"
|
||||
@@ -50,6 +52,8 @@
|
||||
class="org.springframework.batch.sample.item.reader.StagingItemReader"
|
||||
scope="step">
|
||||
<aop:scoped-proxy />
|
||||
<property name="lobHandler"
|
||||
ref="lobHandler" />
|
||||
<property name="dataSource"
|
||||
ref="dataSource" />
|
||||
</bean>
|
||||
|
||||
Reference in New Issue
Block a user