Coder Social home page Coder Social logo

Comments (9)

glassfishrobot avatar glassfishrobot commented on September 25, 2024

Reported by reza_rahman

from ejb-spec.

glassfishrobot avatar glassfishrobot commented on September 25, 2024

reza_rahman said:
One logical place for a decoupled @asynchronous annotation could be the Java EE concurrency utilities.

from ejb-spec.

glassfishrobot avatar glassfishrobot commented on September 25, 2024

mercnboy3 said:
+1 as in the other EJB decouplings, it seems like a package change would be in order.

from ejb-spec.

glassfishrobot avatar glassfishrobot commented on September 25, 2024

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.

glassfishrobot avatar glassfishrobot commented on September 25, 2024

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.

glassfishrobot avatar glassfishrobot commented on September 25, 2024

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.

glassfishrobot avatar glassfishrobot commented on September 25, 2024

gastaldi said:
+1 in having a javax.annotation.Asynchronous and encouraging the usage of CompletableFuture

from ejb-spec.

glassfishrobot avatar glassfishrobot commented on September 25, 2024

Was assigned to mvatkina

from ejb-spec.

glassfishrobot avatar glassfishrobot commented on September 25, 2024

This issue was imported from java.net JIRA EJB_SPEC-3

from ejb-spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.