从WebSphere Console中删除EJB计时器任务 [英] Remove EJB timer tasks from WebSphere Console

查看:249
本文介绍了从WebSphere Console中删除EJB计时器任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个EJB应用程序并使用EJB Timer将一些任务(持久化数据库序列ID)放置在其上,并且一旦到期,就会从Timer中删除任务并调用某些方法。

I have an EJB application and used EJB Timer to place some tasks(persisted database sequence ID) with expire date/time on it and once time expires remove the tasks from the Timer and invoke some method.

我处于这样的情况:EJB Timer中有许多任务,每当Timer Timeout和它从Timer获取每个任务并尝试调用某些必须更新某些数据库的方法时与任务ID。我发现了一些在数据库移动过程中从数据库中删除所有任务的方法。

I am in situation that there are bunch of the tasks placed in EJB Timer and whenever Timer Timeouts and it gets each of the tasks from Timer and try to invoke some method that has to update some database associated with task id. I found some how those all tasks are deleted from database during some database moves.

现在Ejb Timer不断重复Timeout,并且任务不断在日志中抛出异常。我不知道如何从EJB Timer中删除这些任务,因此它不会尝试使用不再存在的每个任务ID来调用方法。

Now Ejb Timer keep repeating the Timeout and the tasks keep throwing exception in logs. I don't the way I do not know how to remove these tasks from EJB Timer so it does not try to call method with each task id which are no longer there.

任何帮助将不胜感激!

谢谢!

推荐答案

那里无法从管理控制台中删除计时器,但您可以使用 WAS_HOME / bin / cancelEJBTimers 命令将其删除。您可以先使用 findEJBTimers 命令查看它们。

There is no ability to remove timers from the admin console, but you can use the WAS_HOME/bin/cancelEJBTimers command to remove them. You can view them first using the findEJBTimers command.

这篇关于从WebSphere Console中删除EJB计时器任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆