Announcement Announcement Module
Collapse
No announcement yet.
How can I use @beforeJob annotation Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How 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, 08:21 AM.

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

    Comment


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

      Comment

      Working...
      X