Hi all,

I have to add some xml comments for some optional configurations.Since this
configuration is optional Initially this whole xml configuration is
commented. Therefore user have to uncomment this whole configuration to use
it. But I can't insert comments in a another comment. Therefore is it fine
to wrap the comments with a non-existing processing-instructions?  [1].

I have attached my configuration file. Please suggest a fine way to make
this configuration file.

[1] http://www.w3.org/TR/REC-xml/#sec-pi
<http://www.w3.org/TR/REC-xml/#sec-pi>

Thanks,
Madhawa

-- 
*Madhawa Gunasekara*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002
 <persistence>
        <!-- JDBC Message Store configurations -->
        <!--messageStore class="org.wso2.andes.store.jdbc.JDBCMessageStoreImpl">
            <property name="dataSource">jdbc/WSO2MBStoreDB</property>
        </messageStore-->

        <!-- JDBC Andes Context Store configurations -->
        <!--contextStore class="org.wso2.andes.store.jdbc.JDBCAndesContextStoreImpl">
            <property name="dataSource">jdbc/WSO2MBStoreDB</property>
        </contextStore-->

        <!-- In memory message store running on H2 -->
        <!--messageStore class="org.wso2.andes.store.jdbc.h2.H2MemMessageStoreImpl">
            <property name="asyncStoring">false</property>
        </messageStore-->

        <!-- In memory context store running on H2 -->
        <!--contextStore class="org.wso2.andes.store.jdbc.h2.H2MemAndesContextStoreImpl">
        </contextStore-->


        <!-- Configurations related to external Cassandra data source -->
        <!-- Uncomment the following 2 stores to use the external Cassandra for Message Store Implementation.
             NOTE: Update the master-datasources.xml file to connect to cassandra data source
             READ the documentation to set advanced cassandra tuning parameters. -->
<!--1 way-->

	<!--messageStore class="org.wso2.andes.store.cassandra.cql.CQLBasedMessageStoreImpl">
            <property name="dataSource">CassandraRepo</property>
            <? replication is the process of storing copies of data on multiple nodes to ensure reliability and fault tolerance. ?>
            <? replication strategy class ?>
            <property name="strategyClass">org.apache.cassandra.locator.SimpleStrategy</property>
            <? replication factor ?>
            <property name="replicationFactor">1</property>
            <? read consistency level specifies how many replicas must respond to a read request before returning data ('ONE','ALL','EACH_QUORUM','QUORUM','ONE','TWO','THREE','ANY') ?>
            <property name="readConsistencyLevel">ONE</property>
            <? write consistency level determines the number of replicas on which the write must succeed before returning an acknowledgment ('ONE','ALL','EACH_QUORUM','QUORUM','ONE','TWO','THREE','ANY')?>
            <property name="writeConsistencyLevel">ONE</property>
        </messageStore>

        <contextStore class="org.wso2.andes.store.cassandra.cql.CQLBasedAndesContextStoreImpl">
            <property name="dataSource">CassandraRepo</property>
            <? replication is the process of storing copies of data on multiple nodes to ensure reliability and fault tolerance. ?>
            <? replication strategy class ?>
            <property name="strategyClass">org.apache.cassandra.locator.SimpleStrategy</property>
            <? replication factor ?>
            <property name="replicationFactor">1</property>
            <? read consistency level specifies how many replicas must respond to a read request before returning data ('ONE','ALL','EACH_QUORUM','QUORUM','ONE','TWO','THREE','ANY') ?>
            <property name="readConsistencyLevel">ONE</property>
            <? write consistency level determines the number of replicas on which the write must succeed before returning an acknowledgment ('ONE','ALL','EACH_QUORUM','QUORUM','ONE','TWO','THREE','ANY')?>
            <property name="writeConsistencyLevel">ONE</property>
        </contextStore-->


<!-- 2 way -->

  	<!--messageStore class="org.wso2.andes.store.cassandra.cql.CQLBasedMessageStoreImpl">
            <property name="dataSource">CassandraRepo</property-->

            <!-- replication is the process of storing copies of data on multiple nodes to ensure reliability and fault tolerance.
            replication strategy class -->
            <!--property name="strategyClass">org.apache.cassandra.locator.SimpleStrategy</property-->

            <!-- replication factor-->
            <!--property name="replicationFactor">1</property-->

            <!-- read consistency level specifies how many replicas must respond to a read request before returning
            data ('ONE','ALL','EACH_QUORUM','QUORUM','ONE','TWO','THREE','ANY') -->
            <!--property name="readConsistencyLevel">ONE</property-->

            <!-- write consistency level determines the number of replicas on which the write must succeed before returning
            an acknowledgment ('ONE','ALL','EACH_QUORUM','QUORUM','ONE','TWO','THREE','ANY') -->
            <!--property name="writeConsistencyLevel">ONE</property>
        </messageStore>

        <contextStore class="org.wso2.andes.store.cassandra.cql.CQLBasedAndesContextStoreImpl">
            <property name="dataSource">CassandraRepo</property-->

            <!-- replication is the process of storing copies of data on multiple nodes to ensure reliability and fault tolerance.
            replication strategy class -->
            <!--property name="strategyClass">org.apache.cassandra.locator.SimpleStrategy</property-->

            <!-- replication factor-->
            <!--property name="replicationFactor">1</property-->

            <!-- read consistency level specifies how many replicas must respond to a read request before returning
             data ('ONE','ALL','EACH_QUORUM','QUORUM','ONE','TWO','THREE','ANY') -->
            <!--property name="readConsistencyLevel">ONE</property-->

            <!-- write consistency level determines the number of replicas on which the write must succeed before returning
            an acknowledgment ('ONE','ALL','EACH_QUORUM','QUORUM','ONE','TWO','THREE','ANY') -->
            <!--property name="writeConsistencyLevel">ONE</property>
        </contextStore-->

 	<!-- This class decides how unique IDs are generated for messages that are persisted -->
        <idGenerator>org.wso2.andes.server.cluster.coordination.TimeStampBasedMessageIdGenerator</idGenerator>
    </persistence>

_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to