Where can I configure the thread pool behind the @Asynchronous calls in Java EE 6?
I recently learned that I can easily make any session bean method Asynchronous by simply adding the @Asynchronous annotation. E.g. @Asynchronous public Future<String> processPayment(Order order) throws PaymentException { ... } I know that Java EE 7 added Concurrency Utilities , but in Java EE 6, where is the thread pool configuration of the @Asyncronous methods? is there a way to set a timeout? is it a fixed thread pool? a cached one? what is it's priority? Is it configurable somewhere in the container? I think timeout could be achieved by invoking Future.cancel(boolean) from a method