[
https://issues.apache.org/jira/browse/FELIX-6720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17864538#comment-17864538
]
Paul Rütter (BlueConic) edited comment on FELIX-6720 at 7/10/24 8:16 AM:
-------------------------------------------------------------------------
{code:java}
threadPool.setVirtualThreadsExecutor(Executors.newVirtualThreadPerTaskExecutor());
{code}
Not sure if this would compile < JDK 21?
was (Author: paul_blueconic):
```
threadPool.setVirtualThreadsExecutor(Executors.newVirtualThreadPerTaskExecutor());
```
Not sure if this would compile < JDK 21?
> Enable virtual thread support in Jetty12
> -----------------------------------------
>
> Key: FELIX-6720
> URL: https://issues.apache.org/jira/browse/FELIX-6720
> Project: Felix
> Issue Type: Improvement
> Components: HTTP Service
> Environment: Jdk 19+
> Reporter: Paul Rütter
> Priority: Major
>
> I was reading
> [https://jetty.org/docs/jetty/12/programming-guide/arch/threads.html#thread-pool-virtual-threads,]
> and wondered if it would make sense to make this configurable in Felix HTTP
> bundle for jetty12.
> It would need adding here (conditionally), probably via using reflection to
> support pre jdk 21.
> [https://github.com/apache/felix-dev/blob/8b2d2faa3669472f50020f7165a076af103c76e9/http/jetty12/src/main/java/org/apache/felix/http/jetty/internal/JettyService.java#L279]
> [~cziegeler] what do you think?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)