How do you launch multiple threads from within Java EE?

后端 未结 6 1292
孤城傲影
孤城傲影 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:11

    The J2EE abstraction for managed multithreading is JCA. In particular, take look at the WorkManager and Work classes. See also this arcicle. Spring also provides JCA-backed work manager abstraction.

提交回复
热议问题