Java EE-Timer / @Schedule in Websphere Liberty Profile

荒凉一梦 提交于 2019-12-07 05:51:14

问题


I want to use the timer-Service (especially @Schedule Annotation) in WebSphere Liberty Profile. Is that possible?

Is there a feature for? https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/downloads/wlp/8.5.5.0/ is nothing ;–(


回答1:


Update: as pointed out this answer is no longer correct since support was added in June 2015. 8.5.5.6 and newer sports ejb timers.

There is no support for EJB Timers in the Liberty profile. The infocenter details the supported features and EJB Timers isn't listed.

If you are interested in the Liberty profile supporting this you could submit a Request for Enhancement on ibm.com.




回答2:


EJB timers are fully supported with WAS Liberty as of 8.5.5.6 (which is fully compliant with Java EE 7).




回答3:


You should have support for Timers in last Beta (May 2014). They will work but with some issues (I can't invoke EJB methods from timer methods for examples) and there is no persistent timers support yet.



来源:https://stackoverflow.com/questions/18074656/java-ee-timer-schedule-in-websphere-liberty-profile

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