Answer the question
In order to leave comments, you need to log in
What is the correct way to use ExecutorService on the server?
Good afternoon.
There are many different articles about ExecutorService, but most of them describe thread pools either in a vacuum or in a stand alone application, but there is no mention of using it on an application server.
Please tell me the practices of using the ExecutorService on the application server (I use JBoss): at what moment to create, how to organize competitive access to the pool (how to hide it in a service with business logic), who and at what moment should turn off the pool, etc?
UPD: we use java ee 6, so we won't be able to make friends with the ManagedExecutorService.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question