Book Image

Microsoft SharePoint 2010 Business Application Blueprints

Book Image

Microsoft SharePoint 2010 Business Application Blueprints

Overview of this book

SharePoint is an incredibly powerful platform that can support a wide variety of business scenarios. In many cases it needs to be configured or extended in order to deliver fully featured business solutions. While some books merely talk about the capabilities of SharePoint in general and leave you to figure out how they apply to your situation, this book takes a different approach. Each chapter provides easy-to-understand, step-by-step instructions along with screenshots to help build exciting SharePoint business solutions that extend the platform. By the end of this book the reader will be a SharePoint developer to be reckoned with. This book will dive into a diverse set of real-world scenarios to deliver sample business solutions that can serve as the foundation for your own solutions. This book draws from the author's extensive experience with SharePoint to leverage the platforms underlying services to provide solutions that can support Social Collaboration, Content and Document Management, as well as project collaboration. Each chapter represents a new business solution that builds on the overall platform to deliver more complex solutions and more advanced techniques. By the end of the book the reader will understand how to leverage the SharePoint platform to build their own business solutions.
Table of Contents (15 chapters)
Microsoft SharePoint 2010 Business Application Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Creating timer jobs


The actual provisioning and configuration of the new site collection will be handled via a timer job instead of making it part of the standard workflow. The provisioning process can be a long running job, and there can be stability problems if too many requests are executed simultaneously. The workflow actions were not intended to support long running jobs such as this. By moving the process to a timer job we can take advantage of the robust scheduling mechanism to queue up the requests, and then handle all of the open requests.

Timer jobs have two main components:

  • The class file that holds the actual execution logic that runs when the timer job is active

  • The feature receiver is used to handle the initial setup and registration of the job. It will schedule the timer job to run as well as execute any tear down activities that need to happen when the timer job is deactivated

Creating the site timer job

To create the timer job:

  1. 1. We will start by adding an Empty Element...