问题
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