Example: FindEJBTimers command

The following examples illustrate how to use the command to find EJB timers and explain the output statement.

To use the findEJBTimers command to find all Enterprise JavaBeans (EJB) timers on a server called server1:
findEJBTimers server1 -all
To find all EJB timers on server1, associated with the Increment bean in the DefaultApplication:
findEJBTimers server1 -app DefaultApplication.ear -mod Increment.jar -bean Increment
When EJB timers matching the filter criteria are found, the output appears similar to this:
EJB Timer : 25     Expiration: Mon Feb 09 13:36:47 CST 2004   Repeating
	EJB        : DefaultApplication.ear Increment.jar Increment
	EJB Key: 8
	Info : Increment Counter
EJB Timer : 26     Expiration: Mon Feb 09 13:36:47 CST 2004   Single
	EJB        : DefaultApplication.ear Increment.jar Increment
	EJB Key: 8
	Info : Decrement Counter
2 EJB Timers found
In this output:

Only the first 40 bytes of toString() output are displayed for the Primary Key and Timer Info. This information is only useful if the application overrides the toString() method for these objects.

Increment in the DefaultApplication does not implement the TimedObject interface, and so could not actually have associated EJB Timers. Increment is used merely for illustrative purposes in this example.




Related tasks
Configuring a Timer Service for network deployment
Related reference
Example: Using the Timer Service
Related information
EJB Timer Service settings
Reference topic    

Terms of Use | Feedback

Last updated: Aug 29, 2010 5:25:00 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-base-dist&topic=rejb_timsercomex1
File name: rejb_timsercomex1.html