Coherence Complete Application Save Retrieve Data Cache

Coherence Complete Application Save Retrieve Data Cache

In this tutorial you will have to setup Oracle Coherence Complete Application where we will save and retrieve data from the cache.

Tools needed:

  • Eclipse any latest version
  • Coherence jar (Already included in pom we are using version 12.1.3.0.2)
  • Maven (It comes with Eclipse)
  • JDK 1.8

Maven project structure:

  • pom.xml:

  • all-cache-context.xml:

  • custom-types-pof-config.xml:

  • JavaHonk.properties: This file is empty but you can use it define your properties here:
  • log4j.properties:

  • log4j2.xml:

  • Employee.java:

  • EmployeeSerializer.java:

  • Person.java:

  • PersonSerializer.java:

  • SerializationHelper.java: Very important class which converts object to byte array:

  • SaveRetrieveByteArrayFromCache.java: Main class which is saving and retrieving data from cache:

  • CoherenceSerializerTest.java: Test class to start the application and test its functionality:

  • Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *