How to get all EJB timers?

后端 未结 4 483
我在风中等你
我在风中等你 2021-01-11 22:37

In EJB 3.1 I can get all timers for a specific bean using TimerService#getTimers() on the TimerService instance obtained for that bean.

What I actually need however

4条回答
  •  时光说笑
    2021-01-11 22:45

    EJB 3.2 has a method called "getAllTimers()".

    https://docs.oracle.com/javaee/7/api/javax/ejb/TimerService.html#getAllTimers--

    Description: Returns all active timers associated with the beans in the same module in which the caller bean is packaged. These include both the programmatically-created timers and the automatically-created timers.

提交回复
热议问题