This example JACL script can be invoked using the wsadmin scripting tool. It will attempt to stop and start a Scheduler daemon.
# Example JACL Script to restart a Scheduler Daemon set schedJNDIName sched/MyScheduler # Find the WASScheduler MBean regsub -all {/} $schedJNDIName "." schedJNDIName set mbeanName Scheduler_$schedJNDIName puts "Looking up Scheduler MBean $mbeanName" set sched [$AdminControl queryNames WebSphere:*,type=WASScheduler,name=$mbeanName] # Invoke the stopDaemon operation. puts "Stopping the daemon..." $AdminControl invoke $sched stopDaemon puts "The daemon has stopped." # Invoke the startDaemon operation. puts "Starting the daemon..." $AdminControl invoke $sched startDaemon 0 puts "The daemon has started."
Related concepts
Scheduler daemon
Related reference
Javadoc
Related information
Example: Dynamically changing scheduler daemon poll intervals using
Java Management Extensions API