The Notifications feature can be used to generate notifications for events that occur as a result of performing operations. In order to receive notifications, users will have to create a subscription to a particular event along with a specified notification method (which can be an e-mail alert or a SOAP message). Each subscription is associated with a resource or collection on the registry. The Manage Notifications page can be used to create, edit, or delete subscriptions to notifications on various operations performed on resources and collections stored in the registry.
The Governance Registry supports a predefined set of events to which notifications can be generated, and also allows a developer to add several others through the OSGi service. The event types supported by default are as follows:
Figure 24: Manage Notifications
To send e-mail notifications, you need to configure the mail transport in axis2. This can be
done by adding the following configuration to the axis2_client.xml file found in CARBON_HOME/conf.
<transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
<parameter name="mail.smtp.host">smtp.gmail.com</parameter>
<parameter name="mail.smtp.port">587</parameter>
<parameter name="mail.smtp.starttls.enable">true</parameter>
<parameter name="mail.smtp.auth">true</parameter>
<parameter name="mail.smtp.user">USERNAME</parameter>
<parameter name="mail.smtp.password">PASSWORD</parameter>
<parameter name="mail.smtp.from">USERNAME@gmail.com</parameter>
</transportSender>