users@glassfish.java.net

[gf-users] Running custom code on GF thread pools

From: Pawel Veselov <pawel.veselov_at_gmail.com>
Date: Mon, 11 May 2015 14:40:02 -0700

Hi.

What's the proper way of scheduling work on threads from existing GF thread
pools? I've been trawling the net for this, and I can find bits and pieces
saying it's sort of possible, but no direct references on how.

E.g.
- how to create JNDI reference to a specific (named) thread pool?
- What is the API that the resource is compliant too (J2EE executor, JDK
executor, GF specific)?

Thank you,
  Pawel.