Cannot Cancel @Asynchronous call to EJB

扶醉桌前 提交于 2019-12-02 08:58:39

EJB 3.1 only provides cooperative async interupts; that is, the EJB can check if the client has called cancel. There is no way to get an actual Thread.interrupt even if Future.cancel(true) is called.

There is an open EJB specification issue (EJB_SPEC-73) to allow actual thread interrupts. This was discussed on the EJB 3.2 expert group (1, 2, 3, 4, 5, 6), but the discussion was eventually deferred to the next version of the EJB specification.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!