Tidy up streams on close in stream manager
This commit is contained in:
@@ -51,8 +51,6 @@ public class SimpleTradeWriter extends AbstractItemWriter implements ItemStream
|
||||
*/
|
||||
private int tradeCount = 0;
|
||||
|
||||
private ExecutionContext executionContext;
|
||||
|
||||
/**
|
||||
* The input template is read using the readAndMap method, which accepts a
|
||||
* FieldSetMapper. This call returns a Trade object, which is then
|
||||
@@ -70,7 +68,6 @@ public class SimpleTradeWriter extends AbstractItemWriter implements ItemStream
|
||||
}
|
||||
|
||||
public void open(ExecutionContext context) throws StreamException {
|
||||
this.executionContext = context;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
<list>
|
||||
<bean id="playerload" parent="simpleStep">
|
||||
<property name="commitInterval" value="1"/>
|
||||
<property name="startLimit" value="100" />
|
||||
<property name="allowStartIfComplete" value="false" />
|
||||
<property name="itemReader"
|
||||
ref="playerFileItemReader" />
|
||||
<property name="itemWriter">
|
||||
@@ -37,7 +35,6 @@
|
||||
</bean>
|
||||
<bean id="gameLoad" parent="simpleStep">
|
||||
<property name="commitInterval" value="1" />
|
||||
<property name="startLimit" value="100" />
|
||||
<property name="itemReader"
|
||||
ref="gameFileItemReader" />
|
||||
<property name="itemWriter">
|
||||
@@ -50,7 +47,6 @@
|
||||
</bean>
|
||||
<bean id="playerSummarization" parent="simpleStep">
|
||||
<property name="commitInterval" value="1" />
|
||||
<property name="startLimit" value="100" />
|
||||
<property name="itemReader"
|
||||
ref="playerSummarizationSource" />
|
||||
<property name="itemWriter">
|
||||
|
||||
@@ -102,6 +102,7 @@
|
||||
<property name="transactionManager" ref="transactionManager" />
|
||||
<property name="jobRepository" ref="jobRepository" />
|
||||
<property name="allowStartIfComplete" value="true" />
|
||||
<property name="startLimit" value="100"/>
|
||||
|
||||
<property name="exceptionHandler">
|
||||
<bean
|
||||
|
||||
Reference in New Issue
Block a user