Peter Wippermann
Peter Wippermann

Reputation: 4589

Why shouldn't I use a chunk in a tasklet?

The Spring Batch documentation says:

no <chunk/> element should be used within the <tasklet/>

There is no further explanation and I can't imagine any. Can anybody please explain this limitation to me?

Upvotes: 2

Views: 1133

Answers (1)

Adrian Shum
Adrian Shum

Reputation: 40036

I think you have missed something.

This piece of document is saying that, no <chunk/> element should be used within the <tasklet/> IF you are configuring for a Tasklet step.

If you look around a bit, you will see, in order to configure a chunk-oriented step, you are in fact using <chunk/> within a <tasklet/>

Upvotes: 3

Related Questions