Skip to content

Instantly share code, notes, and snippets.

@jgoldhammer
Last active December 25, 2015 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgoldhammer/6941374 to your computer and use it in GitHub Desktop.
Save jgoldhammer/6941374 to your computer and use it in GitHub Desktop.
Start a job via the jobs root object. You have to get the job first by its name and than can run the job. This action executes the "executeNow" function of the job Mbean in the jmx interface.
print(jobs.listJobs());
var job = jobs.getJob('tempFileCleanerTrigger');
job.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment