JBoss.orgCommunity Documentation
In the Mail application of eXo Collaboration, when a user checks messages for one account, the remote mailbox fetch is performed as a background job. Before eXo Collaboration 1.2, the job was continued until all messages had been retrieved or when the user stopped the check through the UI. Hence, even when a user was not logged in, the background job was continued. This can be the resource intensive for the server if many users have large mailboxes. Since eXo Collaboration 1.2, one capability is added to halt the background job when the user session terminates (logout or timeout). It makes eXo Collaboration more friendly with server resources. If you want to activate this feature, you need to add a bunch of the xml congifuration in /extension/webapp/src/main/webapp/WEB-INF/cs-extension/cs/mail/mail-service-configuration.xml:
<external-component-plugins>
<target-component>org.exoplatform.services.listener.ListenerService</target-component>
<component-plugin>
<name>exo.core.security.ConversationRegistry.unregister</name>
<set-method>addListener</set-method>
<type>org.exoplatform.mail.service.AuthenticationLogoutListener</type>
<description>description</description>
</component-plugin>
</external-component-plugins>
Details:
Name: exo.core.security.ConversationRegistry.unregister
- The name of listener.
Set-method: addListener
The plugin which registers the method. Keep this value.
Type: org.exoplatform.mail.service.AuthenticationLogoutListener
- A class which executes all requirements of the plugin.
Description: It is a plugin used to stop checking mails of a user when he logs out.