Coherence Save Retrieve Byte Array Cache Example

Coherence Save Retrieve Byte Array Cache Example

In this tutorial you will have to convert java POJO to byte array using Oracle coherence API and sate into the cache and retrieve byte array from cache and converted back to Java POJO object.

Orache Coherence used : coherence-12.1.3.0.2.jar:

  • SerializationHelper.java: This is main class which converts Object to byte array vice versa:

  • SaveRetrieveByteArrayFromCache.java: Save and Retrieve data from cache example:

 

For reference purpose model and serializers:

  • Person.java:

  • PersonSerializer.java:

  • Employee.java:

  • EmployeeSerializer.java:

Leave a Reply

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