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 EJB timers on a server called server1 :
findEJBTimers server1 -allTo find all EJB timers on server1 , associated with the Increment bean in the DefaultApplication :
findEJBTimers server1 -app DefaultApplication.ear -mod Increment.jar -bean IncrementWhen 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 foundIn 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: Timer Service