All Downloads are FREE. Search and download functionalities are using the official Maven repository.

herence.incubator.coherence-messagingpattern.13.0.0.source-code.coherence-messagingpattern-cache-config.xml Maven / Gradle / Ivy

There is a newer version: 13.0.1
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    File: coherence-messagingpattern-cache-config.xml
 
    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
    
    The contents of this file are subject to the terms and conditions of 
    the Common Development and Distribution License 1.0 (the "License").

    You may not use this file except in compliance with the License.

    You can obtain a copy of the License by consulting the LICENSE.txt file
    distributed with this file, or by consulting https://oss.oracle.com/licenses/CDDL

    See the License for the specific language governing permissions
    and limitations under the License.

    When distributing the software, include this License Header Notice in each
    file and include the License file LICENSE.txt.

    MODIFICATIONS:
    If applicable, add the following below the License Header, with the fields
    enclosed by brackets [] replaced by your own identifying information:
    "Portions Copyright [year] [name of copyright owner]"
    
    Copyright (c) 2008. All Rights Reserved. Oracle Corporation.
 -->
<cache-config
	xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-cache-config coherence-cache-config.xsd"

    xmlns:element="class://com.oracle.coherence.common.namespace.preprocessing.XmlPreprocessingNamespaceHandler"
    element:introduce-cache-config="coherence-common-cache-config.xml">

    <caching-scheme-mapping>
        <cache-mapping>
            <cache-name>coherence.messagingpattern.subscriptions</cache-name>
            <scheme-name>distributed-scheme-for-subscriptions</scheme-name>
            <interceptors>
                <interceptor>
                    <name>subscription-event-interceptor</name>
            	    <instance>
            	        <class-name>com.oracle.coherence.common.liveobjects.LiveObjectEventInterceptor</class-name>
            	    </instance>
                </interceptor>
            </interceptors>
        </cache-mapping>

        <cache-mapping>
            <cache-name>coherence.messagingpattern.destinations</cache-name>
            <scheme-name>distributed-scheme-for-destinations</scheme-name>
            <interceptors>
                <interceptor>
                    <name>destination-event-interceptor</name>
            	    <instance>
            	        <class-name>com.oracle.coherence.common.liveobjects.LiveObjectEventInterceptor</class-name>
            	    </instance>
                </interceptor>
            </interceptors>
       </cache-mapping>

	    <cache-mapping>
	        <cache-name>coherence.messagingpattern.messages</cache-name>
	        <scheme-name>distributed-scheme-for-messages</scheme-name>
	        <interceptors>
	            <interceptor>
	                <name>message-event-interceptor</name>
	        	    <instance>
	        	        <class-name>com.oracle.coherence.patterns.messaging.MessageCacheInterceptor</class-name>
	        	    </instance>
	            </interceptor>
	        </interceptors>
	    </cache-mapping>

    </caching-scheme-mapping>

    <caching-schemes>
        <distributed-scheme>
            <scheme-name>distributed-scheme-for-subscriptions</scheme-name>
            <service-name>DistributedCacheForSubscriptions</service-name>
            
            <thread-count>4</thread-count>
                 
            <backing-map-scheme>
                <local-scheme/>
            </backing-map-scheme>

            <autostart>true</autostart>
        </distributed-scheme>
        
        <distributed-scheme>
            <scheme-name>distributed-scheme-for-destinations</scheme-name>
            <service-name>DistributedCacheForDestinations</service-name>

            <thread-count>4</thread-count>

            <backing-map-scheme>
                <local-scheme/>
            </backing-map-scheme>

            <autostart>true</autostart>
        </distributed-scheme>

        <distributed-scheme>
            <scheme-name>distributed-scheme-for-messages</scheme-name>
            <service-name>DistributedCacheForMessages</service-name>

            <thread-count>4</thread-count>
            
            <key-partitioning>
                <class-name>com.oracle.coherence.patterns.messaging.MessageKey$KeyStrategy</class-name>
            </key-partitioning>

            <backing-map-scheme>
                <local-scheme/>
            </backing-map-scheme>

            <autostart>true</autostart>
        </distributed-scheme>        

    </caching-schemes>
</cache-config>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy