title: SharePoint Timer Job targeted at specific web application?
body: <p>I'm trying to deploy a custom SPJobDefinition that I want to run against a specific web application. I thought I could to this by using the web-application scoped base constructor for SPJobDefinition and passing in the web application that I want. I'm doing this in a web application feature's FeatureActivated event receiver:</p>
  
  <pre><code>            TestJob Job = new TestJob("Test", webApp);
              // TODO: change the schedule to run nightly; one time for testing purposes only
              SPOneTimeSchedule schedule = new SPOneTimeSchedule(DateTime.Now);
              TestJob.Schedule = schedule;                
              TestJob.Update();
  </code></pre>
  
  <p>Here's the constructor for the job itself:</p>
  
  <pre><code>    public TestJob(string jobName, SPWebApplication webApplication)
          : base(jobName, webApplication, null, SPJobLockType.Job)
      {
          this.Title = jobName;
      }
  </code></pre>
  
  <p>It seems that the job in running against all web applications regardless. Any suggestions?</p>