Hi Alfresco community, As i am new to Alfresco, i wanted to know how the Recent activity mail notification works internally. Based on my analysis, the property value of cron expression and enabling the notifier is set in the activities-jobs-context.xml wi

cancel
Showing results for 
Search instead for 
Did you mean: 
jdhandp
Member II

Hi Alfresco community, As i am new to Alfresco, i wanted to know how the Recent activity mail notification works internally. Based on my analysis, the property value of cron expression and enabling the notifier is set in the activities-jobs-context.xml wi

Hi Alfresco community, As i am new to Alfresco, i wanted to know how the Recent activity mail notification works internally. Based on my analysis, the property value of cron expression and enabling the notifier is set in the activities-jobs-context.xml with default placeholder value. i wanted to know how the JMX value is overriding the properties value in JobDataMap before execute the FeedNotifierJob class file? 

2 Replies
afaust
Master

Re: Hi Alfresco community, As i am new to Alfresco, i wanted to know how the Recent activity mail notification works internally. Based on my analysis, the property value of cron expression and enabling the notifier is set in the activities-jobs-context.xm

Values set via JMX will be persisted in the database. When the activities subsystem starts up, the default configuration will be loaded from file, but then an Enterprise-specific components additionally loads the values from DB and thus applies changes made via JMX. Once all properties are loaded from file and database, they are exposes to Spring for resolving placeholders.

jdhandp
Member II

Re: Hi Alfresco community, As i am new to Alfresco, i wanted to know how the Recent activity mail notification works internally. Based on my analysis, the property value of cron expression and enabling the notifier is set in the activities-jobs-context.xm

Hi Axel,

 

Thanks for the clarification provided!! Please help us on the below - 

 

We have an issue with receiving mails for the Recent Activties avoiding(disabling/unchecking) the Admin console -> JMX Setting. We tried the below - 
1. At first we enabled the activities.feed.notifier in the alfresco-global.properties and tried to initiate the recent activities job by setting the cron expression activities.feed.notifier.cronExpression=0 0 0 * * ? .
File -> tomcat/shared/classes/alfresco-global.properties 
Change -> activities.feed.notifier = true
activities.feed.notifier.cronExpression=0 0 0 * * ?

2. We again tried adding the below to the previous two entries- 
activities.feed.generator.enabled=true
activities.feed.cleaner.enabled=true
activities.post.cleaner.enabled=true
activities.post.lookup.enabled=true
Disable orphan cleanup and download 

3. Later we found that, the alfresco-global.properties will be overridden by the higher hierarchy of location <extensionRoot>/alfresco/extension/subsystems/<category>/<typeName>/*.properties. So introduced a new activities-jobs.properties file in alfresco/extension/subsystems/ActivitiesFeed/default location. but still the recent activities mail is not received.

We found that the value set through the JMX setting in admin console only has the highest priority. Please clarify if we are missing any other setting in alfresco-global.properties file which will override the JMX setting. We are looking for a solution of configuring the Recent Activties avoiding JMX setting in admin console.