I have a web template that provisions some lists and as part of the solution i need a timer job to manipulate the lists. The problem is i do not know where the lists will be within the web application its deployed too. I was wondering whether its feasible to create a timer job with a public property where i can add the urls of the lists. My idea is as follows:-
- create a timer job with a public property of type array / dictionary / arraylist etc
- In my web scoped feature which creates the lists i check if the timer job is present. If not i create the timer job and pass in the current URL
- If the timer job exists then pass in the url to the array property.
In my timer job i can then iterate over the array / dictionary / arraylist to access the lists?
Does this sound like a good idea? Is there better way of doing this?