Announcement Announcement Module
Collapse
No announcement yet.
How to configure Spring Batch Admin to use mysql? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to configure Spring Batch Admin to use mysql?

    Hi everybody.

    I'm trying to configure Spring Batch Admin to use my MySQL instance but it's not working. I'm trying to customize the sample application.

    According to the official documentation I need to create a file named batch-mysql.properties AND pass a system property like -DENVIRONMENT=[mysql] OR I have the option to write a spring configuration file under META-INF/spring/batch/override/app-context.xml like this:

    Code:
    <context:property-placeholder location="classpath:jdbc.properties"
    		ignore-unresolvable="true" />
    
    	<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
    		destroy-method="close" p:driverClassName="${jdbc.driverClassName}"
    		p:url="${jdbc.url}" p:username="${jdbc.username}" p:password="${jdbc.password}" />
    I'm building the application using its pom (mvn clean install) and it's still using hsql db!

    What am I missing?

    Please help me!

    Thanks.

  • #2
    Remove the mysql from the file name. It should be batch.properties.

    Comment

    Working...
    X