appstatus batch jdbc - nricheton/appstatus GitHub Wiki

This implementation can monitor batch for multiple JVM. Batch informations are stored in a shared database.

Setup

pom.xml

    <dependency>
            <groupId>net.sf.appstatus </groupId>
            <artifactId>appstatus-batch-jdbc</artifactId>
    </dependency>

Spring configuration

	<bean id="batchManager" class="net.sf.appstatus.batch.jdbc.JdbcBatchManager">
		<property name="batchDao" ref="batchDao" >
                      <!-- Mysql / postgres implementation -->
                      <bean class="net.sf.appstatus.batch.jdbc.BatchDao">
                      <!-- Oracle implementation -->
                      <!-- <bean class="net.sf.appstatus.batch.jdbc.BatchDaoOracle"> -->
		            <property name="jdbcTemplate" ref="jdbcTemplate" />
                             <!-- Optional, custom table name -->
		            <property name="tableName" value="CUSTOM_BATCH_STATUS" />
	              </bean>
                </property>
	</bean>

	<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
		<constructor-arg ref="dataSource" />
	</bean>

    <!-- Your data source -->
   <bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
        <property name="driverClassName" value="..." />
        <property name="url" value="..." />
        <property name="username" value="..." />
        <property name="password" value="..." />
    </bean>
⚠️ **GitHub.com Fallback** ⚠️