BATCH-2234: Updated documentation to outline setup requirements as well as adding batch-*.properties files for the other database types
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
http://www.springframework.org/schema/jdbc/spring-jdbc.xsd">
|
||||
|
||||
<batch:job-repository data-source="dataSource" id="jobRepository"
|
||||
transaction-manager="transactionManager" table-prefix="BATCH_"/>
|
||||
transaction-manager="transactionManager" table-prefix="${batch.table.prefix}"/>
|
||||
|
||||
<bean id="jobLauncher" class="org.springframework.batch.core.launch.support.SimpleJobLauncher">
|
||||
<property name="jobRepository" ref="jobRepository"/>
|
||||
@@ -28,8 +28,7 @@
|
||||
<property name="dataSource" ref="dataSource"/>
|
||||
</bean>
|
||||
|
||||
<bean id="dataSource"
|
||||
class="org.apache.commons.dbcp.BasicDataSource">
|
||||
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
|
||||
<property name="driverClassName" value="${batch.jdbc.driver}" />
|
||||
<property name="url" value="${batch.jdbc.url}" />
|
||||
<property name="username" value="${batch.jdbc.user}" />
|
||||
|
||||
18
spring-batch-core/src/main/resources/batch-derby.properties
Normal file
18
spring-batch-core/src/main/resources/batch-derby.properties
Normal file
@@ -0,0 +1,18 @@
|
||||
# Placeholders batch.*
|
||||
# for Derby:
|
||||
batch.jdbc.driver=org.apache.derby.jdbc.EmbeddedDriver
|
||||
batch.jdbc.url=jdbc:derby:derby-home/test;create=true
|
||||
batch.jdbc.user=app
|
||||
batch.jdbc.password=
|
||||
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.DerbyMaxValueIncrementer
|
||||
batch.schema.script=classpath:/org/springframework/batch/core/schema-derby.sql
|
||||
batch.drop.script=classpath:/org/springframework/batch/core/schema-drop-derby.sql
|
||||
batch.business.schema.script=
|
||||
batch.jdbc.testWhileIdle=true
|
||||
batch.jdbc.validationQuery=
|
||||
|
||||
|
||||
# Non-platform dependent settings that you might like to change
|
||||
batch.data.source.init=true
|
||||
batch.table.prefix=BATCH_
|
||||
|
||||
18
spring-batch-core/src/main/resources/batch-h2.properties
Normal file
18
spring-batch-core/src/main/resources/batch-h2.properties
Normal file
@@ -0,0 +1,18 @@
|
||||
# Placeholders batch.*
|
||||
# for H2:
|
||||
batch.jdbc.driver=org.h2.Driver
|
||||
batch.jdbc.url=jdbc:h2:file:build/data/h2
|
||||
batch.jdbc.user=sa
|
||||
batch.jdbc.password=
|
||||
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.H2SequenceMaxValueIncrementer
|
||||
batch.schema.script=classpath:/org/springframework/batch/core/schema-h2.sql
|
||||
batch.drop.script=classpath:/org/springframework/batch/core/schema-drop-h2.sql
|
||||
batch.business.schema.script=
|
||||
batch.jdbc.testWhileIdle=true
|
||||
batch.jdbc.validationQuery=
|
||||
|
||||
|
||||
# Non-platform dependent settings that you might like to change
|
||||
batch.data.source.init=true
|
||||
batch.table.prefix=BATCH_
|
||||
|
||||
@@ -17,3 +17,5 @@ batch.jdbc.validationQuery=
|
||||
|
||||
# Non-platform dependent settings that you might like to change
|
||||
batch.data.source.init=true
|
||||
batch.table.prefix=BATCH_
|
||||
|
||||
|
||||
18
spring-batch-core/src/main/resources/batch-mysql.properties
Normal file
18
spring-batch-core/src/main/resources/batch-mysql.properties
Normal file
@@ -0,0 +1,18 @@
|
||||
# Placeholders batch.*
|
||||
# for MySQL:
|
||||
batch.jdbc.driver=com.mysql.jdbc.Driver
|
||||
batch.jdbc.url=jdbc:mysql://localhost/test
|
||||
batch.jdbc.user=test
|
||||
batch.jdbc.password=test
|
||||
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.MySQLMaxValueIncrementer
|
||||
batch.schema.script=classpath:/org/springframework/batch/core/schema-mysql.sql
|
||||
batch.drop.script=classpath:/org/springframework/batch/core/schema-drop-mysql.sql
|
||||
batch.business.schema.script=
|
||||
batch.jdbc.testWhileIdle=true
|
||||
batch.jdbc.validationQuery=
|
||||
|
||||
|
||||
# Non-platform dependent settings that you might like to change
|
||||
batch.data.source.init=true
|
||||
batch.table.prefix=BATCH_
|
||||
|
||||
18
spring-batch-core/src/main/resources/batch-oracle.properties
Normal file
18
spring-batch-core/src/main/resources/batch-oracle.properties
Normal file
@@ -0,0 +1,18 @@
|
||||
# Placeholders batch.*
|
||||
# for Oracle:
|
||||
batch.jdbc.driver=oracle.jdbc.OracleDriver
|
||||
batch.jdbc.url=jdbc:oracle:thin:@oracle:1521:xe
|
||||
batch.jdbc.user=spring
|
||||
batch.jdbc.password=spring
|
||||
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.OracleSequenceMaxValueIncrementer
|
||||
batch.schema.script=classpath:/org/springframework/batch/core/schema-oracle10g.sql
|
||||
batch.drop.script=classpath:/org/springframework/batch/core/schema-drop-oracle10g.sql
|
||||
batch.business.schema.script=
|
||||
batch.jdbc.testWhileIdle=false
|
||||
batch.jdbc.validationQuery=
|
||||
|
||||
|
||||
# Non-platform dependent settings that you might like to change
|
||||
batch.data.source.init=true
|
||||
batch.table.prefix=BATCH_
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# Placeholders batch.*
|
||||
# for Postgres:
|
||||
batch.jdbc.driver=org.postgresql.Driver
|
||||
batch.jdbc.url=jdbc:postgresql://localhost/samples
|
||||
batch.jdbc.user=postgres
|
||||
batch.jdbc.password=dba
|
||||
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.PostgreSQLSequenceMaxValueIncrementer
|
||||
batch.schema.script=classpath:/org/springframework/batch/core/schema-postgresql.sql
|
||||
batch.drop.script=classpath:/org/springframework/batch/core/schema-drop-postgresql.sql
|
||||
batch.business.schema.script=
|
||||
batch.jdbc.testWhileIdle=false
|
||||
batch.jdbc.validationQuery=
|
||||
|
||||
|
||||
# Non-platform dependent settings that you might like to change
|
||||
batch.data.source.init=true
|
||||
batch.table.prefix=BATCH_
|
||||
|
||||
18
spring-batch-core/src/main/resources/batch-sqlf.properties
Normal file
18
spring-batch-core/src/main/resources/batch-sqlf.properties
Normal file
@@ -0,0 +1,18 @@
|
||||
# Placeholders batch.*
|
||||
# for SQLFire:
|
||||
batch.jdbc.driver=com.vmware.sqlfire.jdbc.ClientDriver
|
||||
batch.jdbc.url=jdbc:sqlfire://localhost:1257/;update=true
|
||||
batch.jdbc.user=SAMPLES
|
||||
batch.jdbc.password=SAMPLES
|
||||
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.DerbyMaxValueIncrementer
|
||||
batch.schema.script=classpath:/org/springframework/batch/core/schema-sqlf.sql
|
||||
batch.drop.script=classpath:/org/springframework/batch/core/schema-drop-sqlf.sql
|
||||
batch.business.schema.script=
|
||||
batch.jdbc.testWhileIdle=false
|
||||
batch.jdbc.validationQuery=
|
||||
|
||||
|
||||
# Non-platform dependent settings that you might like to change
|
||||
batch.data.source.init=true
|
||||
batch.table.prefix=BATCH_
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# Placeholders batch.*
|
||||
# for MS SQLServer:
|
||||
batch.jdbc.driver=net.sourceforge.jtds.jdbc.Driver
|
||||
batch.jdbc.url=jdbc:jtds:sqlserver://localhost:1433;instance=SQLEXPRESS
|
||||
batch.jdbc.user=sa
|
||||
batch.jdbc.password=sa
|
||||
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.SqlServerMaxValueIncrementer
|
||||
batch.schema.script=classpath*:/org/springframework/batch/core/schema-sqlserver.sql
|
||||
batch.drop.script=classpath*:/org/springframework/batch/core/schema-drop-sqlserver.sql
|
||||
batch.business.schema.script=
|
||||
batch.jdbc.testWhileIdle=false
|
||||
batch.jdbc.validationQuery=
|
||||
|
||||
|
||||
# Non-platform dependent settings that you might like to change
|
||||
batch.data.source.init=true
|
||||
batch.table.prefix=BATCH_
|
||||
|
||||
18
spring-batch-core/src/main/resources/batch-sybase.properties
Normal file
18
spring-batch-core/src/main/resources/batch-sybase.properties
Normal file
@@ -0,0 +1,18 @@
|
||||
# Placeholders batch.*
|
||||
# for Sybase:
|
||||
batch.jdbc.driver=net.sourceforge.jtds.jdbc.Driver
|
||||
batch.jdbc.url=jdbc:jtds:sybase://dbhost:5000;databaseName=test
|
||||
batch.jdbc.user=spring
|
||||
batch.jdbc.password=spring
|
||||
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.SybaseMaxValueIncrementer
|
||||
batch.schema.script=classpath*:/org/springframework/batch/core/schema-sybase.sql
|
||||
batch.drop.script=classpath*:/org/springframework/batch/core/schema-drop-sybase.sql
|
||||
batch.business.schema.script=
|
||||
batch.jdbc.testWhileIdle=true
|
||||
batch.jdbc.validationQuery=
|
||||
|
||||
|
||||
# Non-platform dependent settings that you might like to change
|
||||
batch.data.source.init=true
|
||||
batch.table.prefix=BATCH_
|
||||
|
||||
Reference in New Issue
Block a user