Link Details

Link 1050775 thumbnail
User 1188717 avatar

By data4j
via data4j.org
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
  • 874
  • 1316

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)



    Node.js
    Written by: Bert Belder
    Featured Refcardz: Top Refcardz:
    1. Design Patterns
    2. OO JS
    3. Cont. Delivery
    4. Java EE7
    5. HTML5 Mobile
    1. Debugging JavaScript
    2. OO JS
    3. JSON
    4. Ajax
    5. REST