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 仅仅用于说明。

避免故障 避免故障: CancelEJBTimers 命令还将取消自动创建的持久性计时器。取消自动创建的持久性计时器后,重新创建这些计时器的唯一方法是卸载应用程序并将其重新安装。gotcha

指示主题类型的图标 参考主题



时间戳记图标 最近一次更新时间: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=rejb_timsercomex2
文件名:rejb_timsercomex2.html