Skip to content

Commit

Permalink
https://github.com/eclipse-ee4j/ejb-api/issues/123
Browse files Browse the repository at this point in the history
Make sure we have some flavor of the repeatable @schedule annotation.

Signed-off-by: Jean-Louis Monteiro <jlmonteiro@tomitribe.com>
  • Loading branch information
jeanouii authored and scottmarlow committed Sep 8, 2021
1 parent 3950b9d commit 237808f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,11 @@ void doubleAutoTimersCallback() {

}

// Since Jakarta Enterprise Beans 4.0, @Schedule is repeatable
@Schedule(hour = "12", dayOfWeek = "Mon-Thu", persistent = true, info = "a6")
@Schedule(hour = "11", dayOfWeek = "Fri", persistent = false, info = "a7")
void doubleAutoTimersCallbackPersistentAndNot() {

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ public class Client extends ClientBase {
public void setup(String[] args, Properties p) {
super.setup(args, p);
clientBean = singletonBean;
autoTimerCount = 6;
autoTimerCount = 8;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public class Client extends ClientBase {
public void setup(String[] args, Properties p) {
super.setup(args, p);
clientBean = statelessBean;
autoTimerCount = 6;
autoTimerCount = 8;
}
}

0 comments on commit 237808f

Please sign in to comment.