multi-threads JavaEE 容器

Thread -- Request

What is recommended way for spawning threads from a servlet in Tomcat [duplicate]

Using Java SE concurrency utilities such as the java.util.concurrency API, java.lang.Thread andjava.util.Timer in a server application component such as a servlet or EJB are problematic since the container and server have no knowledge of these resources.

Threads in Spring

 

posted @ 2017-02-23 23:53  raindream  阅读(156)  评论(0编辑  收藏  举报