Wednesday, September 30, 2009

How to activate clustering in WSO2 WSAS

Web services application clustering is an major requirement in production environment.WSO2 carbon based products comes with the clustering functionality.To enable clustering in WSAS and other carbon based products is much easier that other  open source applications.

             To work WSAS with the clustering functionality you have to run more wsas instances in the same time.

Following are the steps to enable clustering in WSAS.(to enable clustering to all other wso2 carbon based products follow same steps.)

1. Download WSO2 WSAS.

2. Extract binary package.

3. Open axis2.xml in “WSAS_HOME/conf “ folder.

4. Change “clustering class” enable = true

Ex: 

<clusteringclass="org.apache.axis2.clustering.tribes.TribesClusteringAgent" enable="true">

5. then you have use same cluster for all the wsas instances.That cluster domain name is mention in cluster domain parameter in axis2.xml.message multicasting based on that cluster domain.

Ex:  <parameter name="domain">wso2.carbon.domain</parameter>

This is the basic of the wso2 WSAS clustering functionality. you can find more information here.

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>
    </transportSender>

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.