Announcement Announcement Module
No announcement yet.
Need to call Listener Explicitly? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need to call Listener Explicitly?

    If the JobExecutionListener is registered with the Job Then why is it required
    to explicitly call the Listener methods inside execute method as in case of SimpleJob class

    as a name Listener The framework should have called the Listener implicitly?

  • #2
    I think perhaps you're viewing Job as an extension point for your logic, when it's really there to be a container for steps, which is why SimpleJob contains both the list of Steps, and the listeners. If you really want to use it for your logic, having listeners called automatically wouldn't really help you much.


    • #3
      Hi Lucas
      thanks for your reply