Apparently it’s not supposed to be according to How to get a MBean binding class instance . Yet one can compile with it, so I suspect it may just be a class-loading issue with J-boss 7.
Anyone know how to use BTP with J-boss 7 or a better thread pool implementation: Java.util.concurrent, Servlets (for non-HTTP), something else?
Is there a reason that using an
ExecutorServiceis not an option?See ExecutorService and Executors. I would suggest something like
Executors.newCachedThreadPool()orExecutors.newFixedThreadPool(int).