Results 1 to 3 of 3

Thread: How can I use @beforeJob annotation

  1. #1

    Default Where can I use @beforeJob annotation?

    Hey guys,
    I am trying to use the @beforeJob annotation.
    I create a method in a simple class.
    public void doBeforeJob(JobExecution jobExecution) {}
    but the annotation seems not work.
    Can I use that annotation in any class?
    Do I just need to annotate the method ?
    Or do I need to do something else to get that annotation working?
    Last edited by rafaelweingartner; Sep 12th, 2011 at 08:21 AM.

  2. #2

    Default

    Did you add the listener to job as shown in http://static.springsource.org/sprin...ngJobExecution?

  3. #3

    Default

    No I did not...
    So, I have add the class with that annotation in the job listeners list.
    That was my doubt
    Thank you.

Posting Permissions

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