Skip to content

Commit

Permalink
Issue #43 code review comment to clarify restriction against usage fr…
Browse files Browse the repository at this point in the history
…om EJB
  • Loading branch information
njr-11 committed Oct 8, 2021
1 parent f08d391 commit 4e3d0b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions api/src/main/java/jakarta/enterprise/concurrent/Async.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@

/**
* Annotates a CDI managed bean method to run asynchronously.
* The CDI managed bean must not be an EJB or JSF managed bean,
* and neither the method nor its class can be annotated with
* the MicroProfile Asynchronous annotation.
* <p>
* The Jakarta EE Product Provider runs the method on a {@link ManagedExecutorService}
* and returns to the caller a {@link java.util.concurrent.CompletableFuture CompletableFuture}
Expand Down
4 changes: 3 additions & 1 deletion specification/src/main/asciidoc/jakarta-concurrency.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,9 @@ task.
== Asynchronous Methods

The `jakarta.enterprise.concurrent.Async` annotation annotates a
CDI managed bean method to run asynchronously.
CDI managed bean method to run asynchronously. The CDI managed bean must
not be an EJB or JSF managed bean, and neither the method nor its class
can be annotated with the MicroProfile Asynchronous annotation.

Each asynchronous method execution corresponds to a managed
`java.util.concurrent.CompletableFuture` instance that is backed by a
Expand Down

0 comments on commit 4e3d0b6

Please sign in to comment.