question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specify that @javax.ejb.Asynchronous can be used instead of @Asynchronous in MP

See original GitHub issue

Since @javax.ejb.Asynchronous is already specified in the EJB spec and many MP implementations already provide it, I suggest to specify that it can be used instead of org.eclipse.microprofile.faulttolerance.Asynchronous as an alternative. For many developers it could be confusing that there are 2 @Asynchronous annotations provided by an implementation and only one of them works. It’s very easy to use the wrong one.

In terms of TCK, a test would be executed only if @javax.ejb.Asynchronous is on the classpath so that it passes or is ignored for implementations that don’t provide it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kenfinnigancommented, Dec 4, 2017

I’m -1 on this.

It’s only an issue when those two annotations happen to be on the classpath, which is not the case with every MP implementation.

Also, it’s no different than the situation with other annotations in Java EE that are re-used between specifications.

0reactions
carlosdlrcommented, Jan 24, 2018

-1 for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Asynchronous Method Invocation - The Java EE 6 Tutorial
Session beans can implement asynchronous methods, business methods where control is returned to the client by the enterprise bean container before the method ......
Read more >
Asynchronous REST with JAX-RS and MicroProfile
In this post, we'll look at how to use asynchronous JAX-RS resource methods on the server side. There are limited use cases in...
Read more >
EJB asynchronous methods settings - IBM
Specifies a default work manager instance. The product provides an internal work manager instance for support of EJB asynchronous methods.
Read more >
Fire And Forget. Without JMS. With EJB 3.1 and 8KB WAR File
The method create returns Future, and can return so a result. It will either be executed in background thread or synchronous - if...
Read more >
Correct way to use EJB Asynchronous methods - Stack Overflow
If you were using Java EE 7, you could use the @AccessTimeout(value = xx) annotation , but I think Websphere is Java EE...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found