Network Deployment (Distributed operating systems), v8.0 > Reference > Command-line utilities


Timer service commands


Overview

Information about EJB timers is specific to the application that the timers are created for, and the timers are not visible outside of that application. Therefore, when you manage EJB timers, use the application that contains the enterprise bean and creates the EJB timer.

We can use the following commands during application development to provide basic EJB timer management functions. These commands are not available on client only installations.


findEJBTimers

This command displays information about existing persistent EJB timers, based on specified filter criteria.

This command displays information about existing persistent EJB timers, based on specified filter criteria. The syntax for this command is:

findEJBTimers server filter [options]
   filter: -all | -timer | -app [-mod [-bean ]]
           -all
           -timer timer id
           -app   application name           -mod   module name            -bean  bean name
  options: -host  host name            -port  portnumber
           -conntype connector type            -user  userid
           -password password            -quiet
           -logfile filename
           -replacelog
           -trace
           -help


The following options exist:

server Name of the server process where the EJB timers are located
-all Find all EJB timers associated with the server process
timer id Specifies the EJB Timer ID that uniquely identifies the timer
application name Find all EJB timers associated with the application
module name Find all EJB timers associated with the module
bean name Find all EJB timers associated with the enterprise bean
host name Host name of the server process
portnumber Port of the server process
connector type Type of connection. For example, SOAP, RMI, or NONE.
userid User to use when connecting to the server process
password Password to use when connecting to the server process
quiet Disable output
logfile Direct output to a file
replacelog Clear the existing log before executing the command
trace Enable trace
help Provide command-specific help

If the server you specify is configured to use a scheduler instance shared by multiple servers, then EJB timers that are created in any of the server processes might be found.


cancelEJBTimers

This command cancels and removes from persistent storage EJB persistent timers based on the specified filter criteria.

The syntax for this command is:

cancelEJBTimers server filter [options]
   filter: -all | -timer | -app [-mod [-bean ]]
           -all
           -timer timer id
           -app   application name           -mod   module name            -bean  bean name
  options: -host  host name            -port  portnumber
           -conntype connector type            -user  userid
           -password password            -quiet
           -logfile filename
           -replacelog
           -trace
           -help


The following options exist:

server Name of the server process where the EJB timers are located
-all Find all EJB timers associated with the server process
timer id Specifies the EJB Timer ID that uniquely identifies the timer
application name Find all EJB timers associated with the application
module name Find all EJB timers associated with the module
bean name Find all EJB timers associated with the enterprise bean
host name Host name of the server process
portnumber Port of the server process
connector type Type of connection. For example, SOAP, RMI, or NONE.
userid User to use when connecting to the server process
password Password to use when connecting to the server process
quiet Disable output
logfile Direct output to a file
replacelog Clear the existing log before executing the command
trace Enable trace
help Provide command-specific help

If the server you specify is configured to use a scheduler instance shared by multiple servers, then EJB timers that are created in any of the server processes might be canceled.

See: CancelEJBTimers


Related

findEJBTimers command
CancelEJBTimers command example Create timers using the EJB timer service for enterprise beans

+

Search Tips   |   Advanced Search