Results 1 to 3 of 3

Thread: Need to call Listener Explicitly?

  1. #1
    Join Date
    Sep 2008
    Posts
    9

    Default 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. #2
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    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. #3
    Join Date
    Sep 2008
    Posts
    9

    Default

    Hi Lucas
    thanks for your reply

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •