I’m really impressed with the work that Daniel is being doing lately with all the assembly free stuff.. and now he created a twitter like solution that is completely assembly free! And as Daniel says :
To be clear, this is simply a Site Template. Nothing more, nothing less
You obviously want to know how it looks right? Well here’s a screenshot..
and if you are not really convinced you can try it out here on our demo page and use the following accounts to play with :
Usernames: ZSHOSTED\teamstatus, ZSHOSTED\teamstatus2, ZSHOSTED\teamstatus3
Passwords: (passwords are the same as username, eg. teamstatus, teamstatus2, teamstatus3
Or if you want to download it (since it’s nothing more than a site template) you can grab it here
Let us know what you think of it ! ;)
If you are just starting with creating your own custom timer jobs, you probably run into the posts of AC (Creating Custom SharePoint Timer Jobs , MOSS Timer Jobs - Create Your Own!) and his MSDN article Creating Custom Timer Jobs in Windows SharePoint Services 3.0 and you start using the examples provided and build your very own first timer job right? (I know I did .. and if it wasn’t for his posts and articles in the first place, this post wouldn’t exist ;)
So what is this post about then? Well.. in all the examples provided you will see when defining the timer job the SPJobLockType is set to “ContentDatabase”.
public SharePointWarmupJob (SPWebApplication webApp)
: base(Globals.JobName, webApp, null, SPJobLockType.ContentDatabase) {
this.Title = Globals.JobName;
And when referring to the SDK for explanation this is what it says :
- SPJobLockType.ContentDatabase Locks the content database associated with the job
- SPJobLockType.Job Locks the job to prevent multiple instances of the job from running on a single server
- SPJobLockType.None No locking.
There is another post called Where is My Timer Job? by Scot Hillier where he tests what the real difference is between the Job and the None LockTypes and he discovers when setting these timerjobs in a multi server farm that the Job LockType ensures that it only runs on one server. And the None ensures that the job runs on every server.
But Scot doesn’t mention what happens if you use the ContentDatabase LockType.. in short, it’s almost the same as the Job one, meaning that it only runs one server.. BUT.. as Peter find out at Help needed with custom timerjob in SharePoint 2007 , the job runs for each ContentDatabase that the WebApplication is associated with. Another (quite annoying) fact is that it is not that predictable when it will run on the next content database.
This usually is being discovered when the timer job is already in production (it’s pretty safe to assume that most developers don’t have multiple content databases associated with their WebApplications..) and at that time you don’t have a clue why it’s displaying this kind of behavior.
So if you are not doing stuff that is bound to a specific ContentDatabase (like moving or backing up sitecollections (since sitecollections are stored per contentdatabase)) you are most of the time better of using the Job SPLockType.
3 Comments
|
Posted April 24, 2009 - 10:20
by Robin Meure
in
There is a pretty cool thing going on at the dutch Micorosoft DevDays when it comes to getting speakers for the event.. Basically they are searching for speakers to cover the wildcard sessions. To apply for such a wildcard session they are going to aggregate blogs and search for the tag ‘Devdays’ and then show the results at www.devdays.nl and people can vote which session would be the most interesting one.
Pretty neat eh? :)
So here is my abstract on the session I want to do :
Abstract
When you are developing custom solutions on top of SharePoint you often need a page (or maybe even more) in Central Admin where you can configure your solution. And of course you want to this page to look like a SharePoint page and probably you also want to use the SharePoint controls because, if you are like me, you are a lazy developer and don’t want to reinvent the wheel over and over gain. And maybe you even want to store your configuration where SharePoint stores it configurations. .. ;)
So my session will be about creating those fancy application pages and can be summarized into the following bullets :
- What is an Application Page?
- What SharePoint controls are there for me to re-use?
- How do I store my configuration?
#devdays09
0 Comments
|
Posted April 20, 2009 - 21:13
by Robin Meure
in