Link Details

Link 1050775 thumbnail
User 1188717 avatar

By data4j
Published: Oct 18 2013 / 17:23

MapTrigger is one of the most important features of Oracle Coherence to provide a highly customized cache management system. It represents a functional agent that allows to validate, reject or modify mutating operations against an underlying map. Also, they can prevent invalid transactions, enforce security, provide event logging and auditing, and gather statistics on data modifications. For example, we have code that is working with a NamedCache, and we want to change an entry’s behavior or contents before the entry is inserted into the map. This change can be made without modifying all the existing code by enabling a map trigger. In the following sample application, MapTrigger feature is enabled programmatically by using MapTriggerListener. A new DATA4J cluster is created and User bean is distributed by user-map NamedCache object. Used Technologies : JDK 1.7.0_40, Spring 3.2.4, Coherence 3.7.1 and Maven 3.0.4
  • 9
  • 0
  • 945
  • 1319

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)

Voters Against This Link (0)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java