Java Reference
In-Depth Information
select * from customers where id >= ? and id <= ?
]]></beans:value>
</beans:property>
<beans:property name="preparedStatementSetter">
<beans:bean
class="org.springframework.batch.core.resource.ListPreparedStatementSetter">
<beans:property name="parameters">
<beans:list>
<beans:value>#{stepExecutionContext[minValue]}</beans:value>
<beans:value>#{stepExecutionContext[maxValue]}</beans:value>
</beans:list>
</beans:property>
</beans:bean>
</beans:property>
<beans:property name="rowMapper" ref="customerRowMapper"/>
</beans:bean>
<beans:bean id="customerRowMapper"
class="com.apress.springbatch.chapter11.jdbc.CustomerRowMapper"/>
<beans:bean id="geocoder"
class="com.apress.springbatch.chapter11.processor.GeocodingItemProcessor">
<beans:property name="url" value="http://tinygeocoder.com/create-api.php"/>
</beans:bean>
<beans:bean id="customerImportWriter"
class="org.springframework.batch.item.database.JdbcBatchItemWriter">
<beans:property name="dataSource" ref="dataSource"/>
<beans:property name="sql"
value="update customers set longitude = :longitude, latitude = :latitude where id =
:id"/>
<beans:property name="itemSqlParameterSourceProvider">
<beans:bean class="org.springframework.batch.item.database.
BeanPropertyItemSqlParameterSourceProvider"/>
</beans:property>
</beans:bean>
<beans:bean id="partitionHandler" class="org.springframework.batch.integration.partition.
MessageChannelPartitionHandler">
<beans:property name="stepName" value="step1"/>
<beans:property name="gridSize" value="3"/>
<beans:property name="replyChannel" ref="outbound-replies"/>
<beans:property name="messagingOperations">
<beans:bean class="org.springframework.integration.core.MessagingTemplate">
<beans:property name="defaultChannel" ref="outbound-requests"/>
<beans:property name="receiveTimeout" value="100000"/>
</beans:bean>
</beans:property>
</beans:bean>
<int:channel id="outbound-requests"/>
<int-jms:outbound-channel-adapter connection-factory="connectionFactory"
Search WWH ::




Custom Search