posts - 380, comments - 634, trackbacks - 117,
Dan Bartels online engineering logbook... Items that I find useful organized for my use, and indexed by google for yours. Here you can find information about Microsoft C# programming, SQL SERVER 2005, Telligent Systems CommunityServer, Dot Net Nuke, Windows Vista / Longhorn, and just about anything else that would compel me to type.

News

What I am Reading:


Professional Community Server

Past books can be viewed on:

Post Categories

Archives

Coding Techniques

Coding Tools

Community Sites

Deal Finders

Friends Businesses

Microsofties

Smartphones

Utilities

my blogmap
Using the Telligent.Tasks service to send CommunityServer Emails

Telligent has a Windows Service job which can be run to offload some of the Tasks / Job processing from your web server...  The most common configuration is to use the task server for running the Enterprise Search Indexing jobs, although you could use it to do your Search Barrel Indexing as well... 

The second most common item is to use the tasks service to send outgoing emails...  Communityserver queues emails into the SQL database by default, and uses a "job" to send them.

The key to using the Telligent tasks service for a job that normally runs under the web site is setting up the CommunityServer "context" in the task service...

This involves copying a few items your cs site folders, into the tasks service folder:

  • languages folder (and its sub folders)
  • siteurls.config
  • communityserver.config
  • connectionstrings.config 
  • dlls from your web/bin folder

It is not necessary to remove any tasks from your communityserver.config, as the tasks service loads its task list from the tasks.config file...

Finally you need to edit the tasks.config to set up the cs context object for your site..  To the tasks.config file

Add to the \tasks node:

  <Sites>
   <add name="[AppName from your aspnet_Applications table] " siteUrl="[site url without http://]" />
  </Sites>

and

   <Modules>
    <add name="SiteSettingsModule" type="Telligent.Tasks.CommunityServer.SiteSettingsModule, Telligent.Tasks.CommunityServer" />
    <add name="ServiceTaskModule" type="Telligent.Tasks.ServiceTaskModule, Telligent.Tasks" />
  </Modules>

and then you should be able to configure the email task by adding a thread to the \tasks\threads node

     <Thread minutes="5">
      <task name = "Emails" type = "CommunityServer.MailRoom.Components.EmailJob, CommunityServer.MailGateway.MailRoom" enabled = "true" enableShutDown = "false" failureInterval = "1" numberOfTries = "10" />
    </Thread>

This will use the SMTP server set in your database (its set via the administration section of the CommunityServer Control Panel / Settings / Email Settings; and send your emails to the SMTP server every 5 minutes.

Dan

 

Published Tuesday, September 09, 2008 10:27 AM by DanB

Filed under , ,

Attachment(s): Telligent.Tasks.CommunityServer.zip
::

Comments

# re: Using the Telligent.Tasks service to send CommunityServer Emails @ Tuesday, September 09, 2008 1:49 PM

Hi Dan,

Is this specific for CS2008? We currently use tasks for email and search with the following tasks.config, do we need the SiteSettingsModule?

<Tasks>

 <Modules>

   <add name="ServiceTaskModule" type="Telligent.Tasks.ServiceTaskModule, Telligent.Tasks" />

 </Modules>

 <Threads>

   <Thread minutes="5">

     <task name="Emails" type="CommunityServer.MailRoom.Components.EmailJob, CommunityServer.MailGateway.MailRoom" enabled="true" enableShutDown="false" failureInterval="1" numberOfTries="10" />

   </Thread>

   <Thread minutes="15">

     <task name = "ES.SearchJob" type = "CommunityServer.Enterprise.Search.SearchJob, CommunityServer.Enterprise.Search" count = "10000" enabled = "true" optimize = "false" enableShutDown = "false">

       <add type = "CommunityServer.Enterprise.Search.WeblogIndexTask, CommunityServer.Enterprise.Search" />

       <add type = "CommunityServer.Enterprise.Search.FilesIndexTask, CommunityServer.Enterprise.Search" />

       <add type = "CommunityServer.Enterprise.Search.ForumsIndexTask, CommunityServer.Enterprise.Search" />

       <add type = "CommunityServer.Enterprise.Search.GalleryIndexTask, CommunityServer.Enterprise.Search" />

     </task>

   </Thread>

   <Thread minutes="360">

     <task name = "ES.SearchOptimizer" type = "CommunityServer.Enterprise.Search.SearchOptimizer, CommunityServer.Enterprise.Search" enabled = "true" enableShutDown = "false" />

   </Thread>

 </Threads>

</Tasks>

Dave

# re: Using the Telligent.Tasks service to send CommunityServer Emails @ Thursday, September 11, 2008 7:55 AM

Where can we download the Windows Service?  I noticed that the download only includes the Telligent.Tasks dll and not the service

Jay

# re: Using the Telligent.Tasks service to send CommunityServer Emails @ Monday, September 15, 2008 12:14 PM

@Dave...  The Enterprise Search Job basically does the same funciton as this module...  if however, you were to try to run the email job without also running the search jobs, it wouldnt see your cs site and would run but do nothing.

This was an issue that was introduced in the CS2007 version when we converted from jobs to tasks...  It also applies to CS2008

@Jay...  You need to download the Telligetn.TasksService.  The "EnterpriseSearch" download comes with an MSI to install the tasks service.

Dan

DanB

Leave a Comment

(required) 
(required) 
(optional)
(required) 
 
Powered by Community Server (Commercial Edition), by Telligent Systems
powered by god (with a little help from Telligent Systems - Community Server 2.1)