Comments (9)
Reported by reza_rahman
from ejb-spec.
reza_rahman said:
One logical place for a decoupled @asynchronous annotation could be the Java EE concurrency utilities.
from ejb-spec.
mercnboy3 said:
+1 as in the other EJB decouplings, it seems like a package change would be in order.
from ejb-spec.
emailnbw said:
+1, again as long as this is backwards compatible and things remain consistent. For example, per the spec an implicit REQUIRES_NEW tx is started on its boundary in EJB land. It does raise the issue of consistency when used in a CDI context. If @asynchronous does not have TX implications in CDI by default the developer will have to understand the differences in contexts. If there is @transactional @Asychronous on a CDI bean then that @transactional should be a @transactional(requiresNew = true).
Also it would be nice to make this consistent with the Servlet 3.0 spec's async functionality so that there would be one @asynchronous to rule them all.
from ejb-spec.
reza_rahman said:
An updated @asynchronous should quite possibly take advantage of Java SE 8 CompletableFuture as a superior result processing model?
from ejb-spec.
agoncal said:
The CDI 2.0 EG is thinking of having asynchronous events. It would be a shame to have several manners to have asynchronous calls (EJB, CDI, Servlet, JAX-RS....). Why not having a javax.annotation.Asynchronous common to every spec, and each spec defines its own way of dealing with asynchronous calls ? And I agree with Reza, why not dealing with CompletableFuture ?
from ejb-spec.
gastaldi said:
+1 in having a javax.annotation.Asynchronous and encouraging the usage of CompletableFuture
from ejb-spec.
Was assigned to mvatkina
from ejb-spec.
This issue was imported from java.net JIRA EJB_SPEC-3
from ejb-spec.
Related Issues (20)
- Add pause() and resume() to TimerService HOT 2
- Spec bug regarding tx attributes for timeout methods HOT 2
- Allowing business interface inheritance HOT 2
- Update project lead in JIRA HOT 13
- Clarification whether persistent timers have to survive redeployment / undeployment HOT 7
- AccessTimeout(0) changes locking behaviour in a non intuitive manner HOT 8
- clarify ThreadLocal usage in ejb environment HOT 12
- Explicitly allow Java 8 default methods as business methods HOT 3
- Incorrect description/examples for interceptor-binding DD element HOT 3
- Allow listener method to always be determined at runtime by resource adapter HOT 6
- Define a standard way to specify the resource adapter used by a JMS MDB HOT 4
- Annotation-based Bean-Pool Configuration HOT 2
- Annotation-based Transaction Timeout Configuration HOT 5
- Identity scheduled for removal HOT 3
- Typo in bind of interceptors HOT 2
- EJB RMI-IIOP over HTIOP(Http2 or WebSocket) HOT 2
- clarify ManagedExecutorService task execution allowance in @PostConstruct method for @Startup Singleton Session Bean HOT 9
- EJB 3.2 spec section 14.2 Enterprise bean's name needs clarification HOT 1
- evaluate Java EE 7 spec section 5.2.2 for possible clarification in relation to EJB 3.2 spec portable JNDI lookup
- EJBContext.getCallerIdentity should be removed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ejb-spec.