Skip to content

How to use virtual threads with @Asynchronous @Inject ExecutorService executorService with Quarkus on JDK21? #42448

Answered by mschorsch
dhoffer asked this question in Q&A
Discussion options

You must be logged in to vote

@ozangunalp

Where does the @asynchronous annotation come from? (It doesn't look like MP Fault-Tolerance annotation)

https://jakarta.ee/specifications/platform/10/apidocs/jakarta/enterprise/concurrent/asynchronous

@dhoffer I don't think Quarkus supports @Asynchronous but you can inject a managed executor see https://quarkus.io/guides/context-propagation#usage-example-for-completionstage.

For Virtual Thread support see

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@dhoffer
Comment options

@cescoffier
Comment options

@Ladicek
Comment options

Ladicek Sep 2, 2024
Collaborator

@dhoffer
Comment options

@cescoffier
Comment options

Answer selected by cescoffier
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/virtual-threads Issue related to Java's Virtual Threads
5 participants