How do you launch multiple threads from within Java EE?

后端 未结 6 1217
孤城傲影
孤城傲影 2021-01-01 04:02

I need to scale calls into Tomcat and it\'s been suggested to launch threads internally. Has anyone needed to do this and, if so, what solutions did they come up with?

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-01 04:29

    You shouldn't really launch threads from within your webapp unless you have a very specific need to do so. Without more details on your problem it is hard to tell if this is the right approach to solve your problem.

    You might want to take a look at Quartz, which "is a full-featured, open source job scheduling system that can be integrated with, or used along side virtually any J2EE or J2SE application".

提交回复
热议问题