Skip to content

Commit

Permalink
boot (1.2.4), spring-core (4.1.6) versions upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
mahartma committed Jun 18, 2015
1 parent eeecf31 commit f4e1e91
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</parent>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-starter-batch-web</artifactId>
<version>1.3.4-SNAPSHOT</version>
<version>1.3.5-SNAPSHOT</version>
<name>spring-boot-starter-batch-web</name>
<description>Boot starter for batch web applications</description>
<packaging>jar</packaging>
Expand Down Expand Up @@ -39,8 +39,8 @@
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring.boot.version>1.2.1.RELEASE</spring.boot.version>
<spring.version>4.1.4.RELEASE</spring.version>
<spring.boot.version>1.2.4.RELEASE</spring.boot.version>
<spring.version>4.1.6.RELEASE</spring.version>
<keystore.password>dev_password</keystore.password>
<gpg.passphrase>dev</gpg.passphrase>
<passphrase>${gpg.passphrase}</passphrase>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
*/
package de.codecentric.batch.configuration;

import javax.sql.DataSource;

import org.springframework.batch.core.jsr.JsrJobParametersConverter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.PlatformTransactionManager;

import de.codecentric.batch.jsr352.CustomJsrJobOperator;

Expand All @@ -38,8 +37,8 @@ public class Jsr352BatchConfiguration {
private BatchWebAutoConfiguration batchWebAutoConfiguration;

@Bean
public CustomJsrJobOperator jsrJobOperator(DataSource dataSource) throws Exception{
CustomJsrJobOperator jsrJobOperator = new CustomJsrJobOperator(baseConfig.jobExplorer(), baseConfig.jobRepository(), jsrJobParametersConverter(), batchWebAutoConfiguration.addListenerToJobService());
public CustomJsrJobOperator jsrJobOperator(PlatformTransactionManager transactionManager) throws Exception{
CustomJsrJobOperator jsrJobOperator = new CustomJsrJobOperator(baseConfig.jobExplorer(), baseConfig.jobRepository(), jsrJobParametersConverter(), batchWebAutoConfiguration.addListenerToJobService(), transactionManager);
jsrJobOperator.setTaskExecutor(baseConfig.taskExecutor());
return jsrJobOperator;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.core.task.TaskExecutor;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.util.Assert;

import de.codecentric.batch.listener.AddListenerToJobService;
Expand Down Expand Up @@ -79,8 +80,9 @@ public class CustomJsrJobOperator extends JsrJobOperator implements ApplicationC
public CustomJsrJobOperator(JobExplorer jobExplorer,
JobRepository jobRepository,
JobParametersConverter jobParametersConverter,
AddListenerToJobService addListenerToJobService) {
super(jobExplorer, jobRepository, jobParametersConverter);
AddListenerToJobService addListenerToJobService,
PlatformTransactionManager transactionManager) {
super(jobExplorer, jobRepository, jobParametersConverter, transactionManager);
this.jobRepository = jobRepository;
this.jobParametersConverter = jobParametersConverter;
this.addListenerToJobService = addListenerToJobService;
Expand Down

0 comments on commit f4e1e91

Please sign in to comment.