Any way to publish events?
Dear all,
I am going to write a batch service that users send job requests, and my server will execute corresponding jobs asynchronously, and actively pushing any change in the job's status, including completion of individual step, completion of whole job, or even let steps publish their own message (reporting statistic or progress).
Such events may be sent to an JMS Topic to let interested parties to subscribe to.
Apart from notification to client, I may even use this as a distributed parallelism, where a mother job's task send out "child" job requests to other batch server, and wait until all child job to complete.
To achieve these, I need to subscribe to events in Job Instance (or Job Execution?), is there any way in Spring Batch that can let me do so?
To be more specific, is there any way I can "subcribe" to job instance, and being notified of:
1) Job start and completion
2) Start and completion of individual step
3) custom events published in tasklet/processor
Thanks a lot