U2U Job Definition Configurator Feature

You can download the U2U Job Definition Configurator Solution here.

Remark: when deploying the solution using the delivered setup, be sure to only leave the Central Administration web application checked.

Description

This feature offers SharePoint administrators a user interface to schedule and reschedule custom SharePoint timer jobs.

To use the feature, open the SharePoint 3.0 Central Administration and go to the Operations page. At the bottom you will find an hyperlink Configure job definitions under the group U2U Administration Extensions.

Configure job definitions hyperlink

This brings you to an application page where you can schedule and reschedule SharePoint timer jobs.

Site properties details

In the first section you can choose the web application for which you want to configure a timer job. The dropdown list in the Job Definitions section is populated with the job definitions running on the selected web application.

The third section is an idea I got from Andrews article. In general jobs run for a complete web application. But this feature makes use of the SharePoint object property bag so that you can configure a custom timer job to run for one or more site collections of the selected web application.

Site collections

If you schedule a job for a specific site collection, you have to add some extra code within your custom timer job, otherwise it will continue running for the whole application:

code

Before you can use the U2U.SharePoint.Administration.JobConfigurationSettings class, you have to add a reference to the U2U.SharePoint.JobDefinitionConfigurator.dll, which is deployed in the 12\TEMPLATE\ADMIN\U2U.SharePoint.JobDefinitionConfigurator\bin folder:

code

Remark: This means that the option of running a job for a specific site collection doesn't apply to standard SharePoint jobs!!

In the 4th section you can choose a schedule. If the selected job is already scheduled, the next occurrence date and the current schedule is displayed:

schedule

You can also enable/disable a timer job.

If you want to learn more about developing custom timer jobs:

Contact me Contact


Contact me Receive U2U Newsletter.
Looking for a challenging job Download Brochure On Site Training Looking for a challenging job
Favorites Favorites
Copyright © 1999-2012 by U2U