Skip to content

Commit

Permalink
Merge branch 'master' into whats-new-expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanouii authored Aug 13, 2020
2 parents edca2cb + c89f4bf commit ec94fdb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/src/main/asciidoc/core/Introduction.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ the removal of CORBA from Java 11 and the Jakarta EE 9 Platform._

* _Marked the EJB 2.x API Group as "Optional"_

* _@Schedule annotation is now repeatable_

=== What was New in Jakarta Enterprise Beans 3.2

The Jakarta Enterprise Beans 3.2 <<a9895>> architecture is the first official
Expand Down
1 change: 1 addition & 0 deletions spec/src/main/asciidoc/core/RevisionHistory.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Document updates in preparation for EJB 4.0:
- Removed the methods relying on JAX-RPC link:Ejb.html#a608[See Session Bean Component Contract]
- Removed the deprecated EJBContext.getEnvironment() method link:Ejb.html#a3613[See Enterprise Bean Environment]
- Marked the EJB 2.x API Group as "Optional" link:Ejb.html#a9423[See Runtime Environment]
- @Schedule now a repeatable annotation

Removed documents in preparation for EJB 4.0:

Expand Down
12 changes: 12 additions & 0 deletions spec/src/main/asciidoc/core/TimerService.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,18 @@ single timeout callback method using the `Schedules` annotation.
public void sendLunchNotification() { ... }
----

Alternatively, as of Enterprise Beans 4.0 multiple automatic timers
can be applied to a single timeout callback method using `Schedule`
as a repeatable annotation.

*Example:*
[source, java]
----
@Schedule(hour="12", dayOfWeek="Mon-Thu")
@Schedule(hour="11", dayOfWeek="Fri")
public void sendLunchNotification() { ... }
----

A `Schedule` annotation can optionally
specify an info string. This string can be retrieved by calling
`Timer.getInfo()` on the associated Timer object. If no `info` string is
Expand Down

0 comments on commit ec94fdb

Please sign in to comment.