2

I have developed a sample spring batch integration sample which polls a directory and trigger a batch job for each file.

It's working as expected as long as I am not using spring cloud task.

If I am adding @EnableTask to batch configuration file poller is getting stopped because of which application itself is getting stopped.

The sample project can be downloaded from github.

For reproducing the issue please un comment @EnableTask in BatchConfiguration and spring cloud starter dependency in pom.xml.

Michael Minella
  • 20,843
  • 4
  • 55
  • 67
kiranreddykasa
  • 179
  • 1
  • 9

0 Answers0