WAS v8.5 > Reference > Command-line utilities

Timer service commands

Information about EJB timers is specific to the application the timers are created for, and the timers are not visible outside of that application. Therefore, when we manage EJB timers, use the application containing 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

Specifies to find all EJB timers associated with the server process

timer id

Specifies the EJB Timer ID that uniquely identifies the timer

application name

Specifies to find all EJB timers associated with the application

module name

Specifies to find all EJB timers associated with the module

bean name

Specifies to find all EJB timers associated with the enterprise bean

host name

Specifies the 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

Specifies to disable output

logfile

Specifies to direct output to a file

replacelog

Specifies to clear the existing log before executing the command

trace

Specifies to enable trace

help

Specifies to provide command-specific help

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

See the information about locating EJB timers using the findEJBTimers command.


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

Specifies to find all EJB timers associated with the server process

timer id

Specifies the EJB Timer ID that uniquely identifies the timer

application name

Specifies to find all EJB timers associated with the application

module name

Specifies to find all EJB timers associated with the module

bean name

Specifies to find all EJB timers associated with the enterprise bean

host name

Specifies the 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

Specifies to disable output

logfile

Specifies to direct output to a file

replacelog

Specifies to clear the existing log before executing the command

trace

Specifies to enable trace

help

Specifies to provide command-specific help

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

For an example of the cancelEJBTimers command, see the topic CancelEJBTimers command example.


Subtopics


Related


Create timers using the EJB timer service for enterprise beans


+

Search Tips   |   Advanced Search