Author: ruwan
Date: Fri Dec 19 02:48:39 2008
New Revision: 27403
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=27403

Log:
Moving the axis2.xml and the synapse.xml to the conf folder from the repository
clustering section of axis2 updated



Modified:
   trunk/esb/java/modules/distribution/src/main/assembly/bin.xml
   trunk/esb/java/modules/distribution/src/main/conf/axis2.xml

Modified: trunk/esb/java/modules/distribution/src/main/assembly/bin.xml
URL: 
http://wso2.org/svn/browse/wso2/trunk/esb/java/modules/distribution/src/main/assembly/bin.xml?rev=27403&r1=27402&r2=27403&view=diff
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/assembly/bin.xml       
(original)
+++ trunk/esb/java/modules/distribution/src/main/assembly/bin.xml       Fri Dec 
19 02:48:39 2008
@@ -11,8 +11,8 @@
             <outputDirectory>wso2esb-${esb.version}</outputDirectory>
             <excludes>
                 <exclude>**/*.sh</exclude>
-                <exclude>**/repository/axis2.xml</exclude>
-                <exclude>**/repository/synapse.xml</exclude>
+                <exclude>**/conf/axis2.xml</exclude>
+                <exclude>**/conf/synapse.xml</exclude>
                 <exclude>**/log4j.properties</exclude>
                 <exclude>**/native/*</exclude>
                 <exclude>**/services/sample01.aar</exclude>
@@ -281,12 +281,12 @@
     <files>
         <file>
             <source>src/main/conf/axis2.xml</source>
-            
<outputDirectory>wso2esb-${esb.version}/repository</outputDirectory>
+            <outputDirectory>wso2esb-${esb.version}/conf</outputDirectory>
             <destName>axis2.xml</destName>
         </file>
         <file>
             <source>src/main/conf/synapse.xml</source>
-            
<outputDirectory>wso2esb-${esb.version}/repository</outputDirectory>
+            <outputDirectory>wso2esb-${esb.version}/conf</outputDirectory>
             <destName>synapse.xml</destName>
         </file>
         <file>

Modified: trunk/esb/java/modules/distribution/src/main/conf/axis2.xml
URL: 
http://wso2.org/svn/browse/wso2/trunk/esb/java/modules/distribution/src/main/conf/axis2.xml?rev=27403&r1=27402&r2=27403&view=diff
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/conf/axis2.xml (original)
+++ trunk/esb/java/modules/distribution/src/main/conf/axis2.xml Fri Dec 19 
02:48:39 2008
@@ -83,7 +83,7 @@
     <!--    </listener>-->
 
     <!-- Synapse Configuration file -->
-    <parameter name="SynapseConfig.ConfigurationFile" 
locked="false">repository/synapse.xml</parameter>
+    <parameter name="SynapseConfig.ConfigurationFile" 
locked="false">conf/synapse.xml</parameter>
 
     <!-- Synapse Home parameter -->
     <parameter name="SynapseConfig.HomeDirectory" locked="false">.</parameter>
@@ -357,24 +357,170 @@
     <!-- ================================================= -->
     <!-- Clustering  -->
     <!-- ================================================= -->
-    <!-- Configure and uncomment following for preparing Synapse to a 
clustered environment -->
-    <!--<cluster 
class="org.apache.axis2.clustering.tribes.TribesClusterManager">
+    <!-- Configure the following for preparing Synapse to a clustered 
environment -->
+    <clustering 
class="org.apache.axis2.clustering.tribes.TribesClusteringAgent" enable="false">
 
-        <parameter name="AvoidInitiation">false</parameter>
-        <parameter name="domain">wso2esb.domain</parameter>
+        <!--
+           This parameter indicates whther the cluster has to be automatically 
initalized
+           when the AxisConfiguration is built. If set to "true" the 
initialization will not be
+           done at that stage, and some other party will have to explictly 
initialize the cluster.
+        -->
+        <parameter name="AvoidInitiation">true</parameter>
+
+        <!--
+           Indicates whether this member is active or not. This will be useful 
in a setup where
+           members are deployed in ACTIVE and/or PASSIVE configuration
+        -->
+        <parameter name="isActive">true</parameter>
+
+        <!--
+           An implementation of org.apache.axis2.clustering.MembershipListener
+           which will be called on membership changes
+        -->
+        <!--
+        <parameter name="membershipListener">
+            <class>org.apache.axis2.clustering.MembershipListenerImpl</class>
+            <properties>
+                <property name="foo">bar</property>
+            </properties>
+        </parameter>
+        -->
+
+        <!--
+           The membership scheme used in this setup. The only values supported 
at the moment are
+           "multicast" and "wka"
+
+           1. multicast - membership is automatically discovered using 
multicasting
+           2. wka - Well-Known Address based multicasting. Membership is 
discovered with the help
+                    of one or more nodes running at a Well-Known Address. New 
members joining a
+                    cluster will first connect to a well-known node, register 
with the well-known node
+                    and get the membership list from it. When new members 
join, one of the well-known
+                    nodes will notify the others in the group. When a member 
leaves the cluster or
+                    is deemed to have left the cluster, it will be detected by 
the Group Membership
+                    Service (GMS) using a TCP ping mechanism.
+        -->
+        <parameter name="membershipScheme">multicast</parameter>
+
+        <!--
+         The clustering domain/group. Nodes in the same group will belong to 
the same multicast
+         domain. There will not be interference between nodes in different 
groups.
+        -->
+        <parameter name="domain">apache.axis2.domain</parameter>
+
+        <!--
+           When a Web service request is received, and processed, before the 
response is sent to the
+           client, should we update the states of all members in the cluster? 
If the value of
+           this parameter is set to "true", the response to the client will be 
sent only after
+           all the members have been updated. Obviously, this can be time 
consuming. In some cases,
+           such this overhead may not be acceptable, in which case the value 
of this parameter
+           should be set to "false"
+        -->
         <parameter name="synchronizeAll">true</parameter>
+
+        <!--
+          The maximum number of times we need to retry to send a message to a 
particular node
+          before giving up and considering that node to be faulty
+        -->
         <parameter name="maxRetries">10</parameter>
 
-        <parameter name="multicastAddress">228.0.0.4</parameter>
-        <parameter name="multicastPort">45564</parameter>
-        <parameter name="multicastFrequency">500</parameter>
-        <parameter name="multicastMemberDropTime">3000</parameter>
+        <!-- The multicast address to be used -->
+        <parameter name="mcastAddress">228.0.0.4</parameter>
+
+        <!-- The multicast port to be used -->
+        <parameter name="mcastPort">45564</parameter>
+
+        <!-- The frequency of sending membership multicast messages (in ms) -->
+        <parameter name="mcastFrequency">500</parameter>
 
-        <parameter name="tcpListenHost">127.0.0.1</parameter>
-        <parameter name="tcpListenPort">4000</parameter>
+        <!-- The time interval within which if a member does not respond, the 
member will be
+         deemed to have left the group (in ms)
+         -->
+        <parameter name="memberDropTime">3000</parameter>
+
+        <!--
+           The IP address of the network interface to which the multicasting 
has to be bound to.
+           Multicasting would be done using this interface.
+        -->
+        <parameter name="mcastBindAddress">127.0.0.1</parameter>
 
-        <contextManager 
class="org.apache.axis2.clustering.context.DefaultContextManager">
-            <listener 
class="org.apache.axis2.clustering.context.DefaultContextManagerListener"/>
+        <!-- The host name or IP address of this member -->
+        <parameter name="localMemberHost">127.0.0.1</parameter>
+
+        <!--
+        The TCP port used by this member. This is the port through which other 
nodes will
+        contact this member
+         -->
+        <parameter name="localMemberPort">4000</parameter>
+
+        <!--
+        Preserve message ordering. This will be done according to sender order.
+        -->
+        <parameter name="preserveMessageOrder">true</parameter>
+
+        <!--
+        Maintain atmost-once message processing semantics
+        -->
+        <parameter name="atmostOnceMessageSemantics">true</parameter>
+
+        <!--
+        Properties specific to this member
+        -->
+        <parameter name="properties">
+            <property name="backendServerURL" 
value="https://${hostName}:${httpsPort}/services/"/>
+            <property name="mgtConsoleURL" 
value="https://${hostName}:${httpsPort}/"/>
+        </parameter>
+
+        <!--
+           The list of static or well-known members. These entries will only 
be valid if the
+           "membershipScheme" above is set to "wka"
+        -->
+        <members>
+            <member>
+                <hostName>127.0.0.1</hostName>
+                <port>4000</port>
+            </member>
+            <member>
+                <hostName>127.0.0.1</hostName>
+                <port>4001</port>
+            </member>
+        </members>
+
+        <!--
+        Enable the load balancer entry if you need to run this node as a load 
balancer.
+        Multiple application domains with different LoadBalanceEventHandler 
implementations
+        can be defined in this section.
+        -->
+        <groupManagement enable="false">
+            <applicationDomain name="apache.axis2.application.domain"
+                               
agent="org.apache.axis2.clustering.DefaultGroupManagementAgent"/>
+        </groupManagement>
+
+        <!--
+           This interface is responsible for handling configuration management.
+           Configuraion changes include:
+
+            1. Rebooting an entire cluster, in which case, all nodes have to 
load the new
+               Axis2 configuration in a consistent manner
+            2. Deploying a new service to a cluster or undeploying a service 
from a cluster
+            3. Changing the policies of a service deployed on the cluster
+
+            The "enable" attribute indicates whether Configuration management 
has been enabled
+        -->
+        <nodeManager 
class="org.apache.axis2.clustering.management.DefaultNodeManager"
+                     enable="true"/>
+
+        <!--
+           This interface is responsible for handling context replication. The 
property changes in
+           the Axis2 context hierarchy in this node, are propagated to all 
other nodes in the cluster.
+
+           The "excludes" patterns can be used to specify the prefixes (e.g. 
local_*) or
+           suffixes (e.g. *_local) of the properties to be excluded from 
replication. The pattern
+           "*" indicates that all properties in a particular context should 
not be replicated.
+
+            The "enable" attribute indicates whether context replication has 
been enabled
+        -->
+        <stateManager 
class="org.apache.axis2.clustering.state.DefaultStateManager"
+                      enable="true">
             <replication>
                 <defaults>
                     <exclude name="local_*"/>
@@ -383,14 +529,6 @@
                 <context class="org.apache.axis2.context.ConfigurationContext">
                     <exclude name="UseAsyncOperations"/>
                     <exclude name="SequencePropertyBeanMap"/>
-                    <exclude name="WORK_DIR"/>
-                    <exclude name="NextMsgBeanMap"/>
-                    <exclude name="RetransmitterBeanMap"/>
-                    <exclude name="StorageMapBeanMap"/>
-                    <exclude name="CreateSequenceBeanMap"/>
-                    <exclude name="ConfigContextTimeoutInterval"/>
-                    <exclude name="ContainerManaged"/>
-                    <exclude name="wso2esb.generated.pages"/>
                 </context>
                 <context class="org.apache.axis2.context.ServiceGroupContext">
                     <exclude name="my.sandesha.*"/>
@@ -399,8 +537,8 @@
                     <exclude name="my.sandesha.*"/>
                 </context>
             </replication>
-        </contextManager>
-    </cluster>-->
+        </stateManager>
+    </clustering>
 
     <!-- ================================================= -->
     <!-- Phases  -->

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to