CancelEJBTimers command example
The following examples illustrate how to use the command to cancel Enterprise JavaBeans (EJB) timers.
To use the cancelEJBTimer command to cancel all EJB timers on a server called server1:
cancelEJBTimers server1 -all
要取消 server1 上与 DefaultApplication 中的 Increment Bean 关联的所有 EJB 计时器。
cancelEJBTimers server1 -app DefaultApplication.ear -mod Increment.jar -bean Increment
要取消通过 FindEJBTimers 命令或在表明问题或故障的系统日志条目中标识的特定 EJB 计时器:
cancelEJBTimers server1 -timer 25
DefaultApplication 中的 Increment 不会实现 TimedObject 接口,因此不能真正与 EJB 计时器关联。在此示例中 Increment 仅仅用于说明。
