Getting exception while retrieving data using Springbatch with MySQL
Issue
- We've a springbatch batch running on JBoss EAP 6.4.1 server wich retrieves data from MySQL, in the middle of the execution it crashes, below is the the dataSource and driver configurations
<xa-datasource jndi-name="java:/jdbc/Test_XA" pool-name="Test_XA" enabled="true" use-java-context="false" use-ccm="true"
statistics-enabled="true">
<xa-datasource-property name="DatabaseName">
test
</xa-datasource-property>
<xa-datasource-property name="PortNumber">
3306
</xa-datasource-property>
<xa-datasource-property name="ServerName">
test_srv
</xa-datasource-property>
<xa-datasource-property name="socketTimeout">
60
</xa-datasource-property>
<driver>MYSQL_XA_Provider</driver>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<xa-pool>
<min-pool-size>0</min-pool-size>
<max-pool-size>100</max-pool-size>
<flush-strategy>IdleConnections</flush-strategy>
<is-same-rm-override>false</is-same-rm-override>
</xa-pool>
<security>
<user-name>*****</user-name>
<password>${*****}</password>
</security>
<validation>
<valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/>
<validate-on-match>false</validate-on-match>
<background-validation>true</background-validation>
<background-validation-millis>15000</background-validation-millis>
<use-fast-fail>true</use-fast-fail>
<exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter"/>
</validation>
<timeout>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-minutes>2</idle-timeout-minutes>
</timeout>
</xa-datasource>
<driver name="MYSQL_XA_Provider" module="test">
<driver-class>com.mysql.jdbc.Driver</driver-class>
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
- The springbatch version is 2.1.9. I also provide driver library.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.4.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
