Tuesday, September 29, 2009

How to Enable Mail Notification in WSO2 Governance Registry

WSO2 Governance Registry supports a variety of notification methods.It notify most of the activities you do inside the governance registry.those are,

  • Email - Any valid email address.
  • HTML/Plain-Text - An endpoint accepting HTML or text content.
  • SOAP - An endpoint accepting notifications as a SOAP message.
  • User Profile - A valid user's profile. Notifications will be sent to the email address specified on the user's default profile.

Here is the steps you need to follow enable email notifications in WSO2 Governance Registry.

1. Download WSO2 Governance Registry.

2. Extract Binary package.

3. Open “axis2_client.xml” file inside the “WSO2Registry/conf” folder.

4. Add Following Configuration and change Mail setting what you are using.

<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">chamarasilva</parameter>
        <parameter name="mail.smtp.password">mailpassword</parameter>
        <parameter name="mail.smtp.from">chamarasilva@gmail.com</parameter>

you need to change following tags in above configuration,

   1. mail.smtp.user = Username of the mail account

   2. mail.smtp.password = Password of the mail account

   3. mail.smtp.from = Email address of the mail account

5. Now start WSO2 Governance Registry server and set mail notification in each activity.

1 comment:

VRB said...

Hi Suminda,

I am in very bad need of configuring the WSO2 Governance registry with email server (SMTP)

for some reasons I could not get connect to the server.

I have all parameters set correct in axis2.xml

Please advice.