Created
November 3, 2011 13:44
-
-
Save aziz781/1336511 to your computer and use it in GitHub Desktop.
Spring Batch sample configuration applicationContext-batch.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:aop="http://www.springframework.org/schema/aop" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:jee="http://www.springframework.org/schema/jee" | |
xmlns:tx="http://www.springframework.org/schema/tx" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:batch="http://www.springframework.org/schema/batch" | |
xmlns:task="http://www.springframework.org/schema/task" | |
xmlns:amq="http://activemq.apache.org/schema/core" | |
xmlns:jms="http://www.springframework.org/schema/jms" | |
xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd | |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd | |
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd | |
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd | |
http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd | |
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd | |
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd | |
http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-2.5.xsd"> | |
<!-- Spring Batch configurations --> | |
<batch:job-repository id="jobRepository" data-source="dataSource" | |
transaction-manager="transactionManager" table-prefix="BATCH_"/> | |
<bean id="jobRegistry" class="org.springframework.batch.core.configuration.support.MapJobRegistry"/> | |
<bean id="jobRegistryBeanPostProcessor" class="org.springframework.batch.core.configuration.support.JobRegistryBeanPostProcessor"> | |
<property name="jobRegistry" ref="jobRegistry"/> | |
</bean> | |
<bean id="jobLauncher" class="org.springframework.batch.core.launch.support.SimpleJobLauncher"> | |
<property name="jobRepository" ref="jobRepository"/> | |
</bean> | |
<bean id="jobOperator" class="org.springframework.batch.core.launch.support.SimpleJobOperator"> | |
<property name="jobLauncher" ref="jobLauncher"/> | |
<property name="jobExplorer" ref="jobExplorer"/> | |
<property name="jobRepository" ref="jobRepository"/> | |
<property name="jobRegistry" ref="jobRegistry"/> | |
</bean> | |
<bean id="jobExplorer" class="org.springframework.batch.core.explore.support.JobExplorerFactoryBean"> | |
<property name="dataSource" ref="dataSource"/> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment