An implementation of a GlassFish thread pool that schedules tasks on virtual threads instead of platform threads.
mvn install
(requires Java 21+ to build)
- After building, install
target/grizzly-virtual-threads-pool.jarinto an existing GlassFish domain as a library. Either copy it toglassfish/domains/domain1/libor install it via theasadmin add-librarycommand - Run GlassFish 7 on Java 21
- Edit http-thread-pool thread pool and set the
Class Nameto:org.glassfish.grizzlyintegration.virtualthreads.VirtualThreadsExecutorService
When the above steps are performed with an older Java version than 21, all will work, but the thread pool will fall back to the default mechanism, which uses platform threads.
