[redhat-ccm-list] Notification Engine

Jun Yamog goldfish at i-manila.com.ph
Wed Mar 3 10:32:32 UTC 2004


Hi David,

There are different ways of doing this.  One way to extend

com.arsdigita.notification.BaseSubscription.

Once you have created one, just reuse it.  Just pass a ThreadedMessage
to sendNofication(); most likely in your situation the ThreadedMessage
contains the news on your site.  The notification sweeper should pick it
up during its scheduled run and email it.

Set your enterprise.init params

init com.arsdigita.notification.Initializer { 
    RequestManagerDelay  = 60; // in seconds
    RequestManagerPeriod = 60; // in seconds
    SimpleQueueDelay     = 60; // in seconds
    SimpleQueuePeriod    = 60; // in seconds
    DigestQueueDelay     = 60; // in seconds
    DigestQueuePeriod    = 60; // in seconds
}

BTW don't use those values.  Since I use it for development I wanted
quick results.  So just a minute of wait time.

Another way is just com.arsdigita.mail.Mail.  But then this is more
crude.  But in our case we used a mix of this and notification.  We
actually didn't use notification for the requirement you have given as
an example because.  Each letter to the user was custom made... each
letter maybe different from one user to another.  Also included their
names and other info on the body.

Jun

On Wed, 2004-03-03 at 18:11, David Young wrote:
> We are investigating creating an application that notifies users of new
> information available on the website.  We would preferably like some
> system that would check for new items once a day, construct an email
> message containing these new items, then send the item to a group of
> users that have subscribed to this service.  
> 
> Am I correct in thinking that this is exactly what the notification
> package is for?  Looking at the notification package has left me with
> some questions.  In order to use a notification, would you create and
> save a notification in the package initializer, and then it would simply
> automatically send notifications at the required frequency?  How would
> you dynamically construct the message object for each time the
> notification engine runs?  I think basically I can't see how to
> configure the notification package to achieve what we need.
> 
> Thanks
> 
> David
> 
> 
> **********************************************************************
> The information contained in this transmission may be
> confidential and may also be the subject of legal
> professional privilege. If you are not the intended recipient,
> any use, disclosure or copying of any part of this transmission
> is unauthorised. If you have received this transmission in
> error, please notify the originator immediately.
> 
> www.southoxon.gov.uk
> **********************************************************************
> 





More information about the Redhat-ccm-list mailing list