formatting
This commit is contained in:
@@ -41,7 +41,7 @@ public class TxIntegrationConfig {
|
|||||||
|
|
||||||
private final Logger log = LoggerFactory.getLogger(this.getClass());
|
private final Logger log = LoggerFactory.getLogger(this.getClass());
|
||||||
|
|
||||||
public final String INPUT_DIR = "/tmp/tx/";
|
public final String INPUT_DIR = System.getProperty("java.io.tmpdir") + "/tx/";
|
||||||
public final String FILE_PATTERN = "*.txt";
|
public final String FILE_PATTERN = "*.txt";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -72,17 +72,14 @@ public class TxIntegrationConfig {
|
|||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public PollerMetadata pollerMetadata() {
|
public PollerMetadata pollerMetadata() {
|
||||||
return Pollers
|
return Pollers.fixedDelay(5000)
|
||||||
.fixedDelay(5000)
|
|
||||||
.advice(transactionInterceptor())
|
.advice(transactionInterceptor())
|
||||||
.transactionSynchronizationFactory(transactionSynchronizationFactory)
|
.transactionSynchronizationFactory(transactionSynchronizationFactory)
|
||||||
.get();
|
.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
private TransactionInterceptor transactionInterceptor() {
|
private TransactionInterceptor transactionInterceptor() {
|
||||||
return new TransactionInterceptorBuilder()
|
return new TransactionInterceptorBuilder().transactionManager(txManager).build();
|
||||||
.transactionManager(txManager)
|
|
||||||
.build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
|||||||
Reference in New Issue
Block a user