...
Apply the
kernel patch0012
Carbon patch. The patch includes a modification in the Carbon Core component, allowing it to add third party membership schemes.Info For more information, see WSO2 patch application process.
Copy the following
JAR
files to the /dropins
directory of the Carbon server:activemq_client_5.10.0_1.0.0.jar
geronimo_j2ee_management_1.1_spec_1.0.1_1.0.0.jar
hawtbuf_1.9_1.0.0.jar
org.apache.commons.lang3_3.1.0.jar
org.apache.stratos.common-4.1.0.jar
org.apache.stratos.messaging-4.1.0.jar
private-paas-membership-scheme-4.1.0.jar
Update the
<PPAAS_HOME>/repository/conf/axis2.xml
file with the following configurations:Info The cluster ID parameter needs to contain the cluster ID of the relevant carbon server cluster:
Code Block <clustering class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent" enable="true"> <parameter name="membershipScheme">private-paas</parameter> <parameter name="membershipSchemeClassName">org.wso2.carbon.ppaas.PrivatePaaSBasedMembershipScheme</parameter> <parameter name="clusterIds">cluster-1,cluster-2</parameter> <parameter name="localMemberPort">4000</parameter> </clustering>
Note When using Private PaaS with the
private-paas
membership scheme, update thelocalMemberPort
property in theaxis2.xml
file, because theprivate-paas
membership scheme uses the default port - 4000.Update the JNDI configuration of the product to include the message broker configuration for the PPaaS Membership Scheme to connect to. Point the java.naming.provider to the AMQP port of the message broker.
Code Block title jndi.properties connectionfactoryName=TopicConnectionFactory java.naming.provider.url=tcp://localhost:61616 java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory