We are creating a web app where we need to have concurrency for a few business cases. This application would be deployed in a tomcat container. I know that creating user defined threads in the web container is a bad idea and am trying to explore options that i have.
- Have my multi-threaded library used as a JCA component. We are averse to using this approach because of the learning curve that might be involved.
- I know that there's WorkManager API's available but i guess thats not implemented by tomcat so this option goes out.
- I did some research and found out that CommonJ library is recommended for Tomcat. Has anyone used it?
- Also, I see that there are ManagedExecutorService available but I am not sure how to use it and is it different from WorkManager API's (and the commonJ library)?
Any help on this appreciated. By the way, using JMS is out of question because of deployment environment. I am inclining towards points 3 and 4 but i do not have much knowledge on it. Could someone guide pls.