Reader small image

You're reading from  Getting Started with Hazelcast

Product typeBook
Published inAug 2013
Reading LevelBeginner
Publisher
ISBN-139781782167303
Edition1st Edition
Languages
Right arrow
Author (1)
Matthew Johns
Matthew Johns
author image
Matthew Johns

contacted on 6 may '16 ________ Matthew Johns is an agile software engineer and hands-on technical/solution architect; specialising in designing and delivering highly scaled and available distributed systems, with broad experience across the whole stack. He is the solution architect and lead engineer at Sky.
Read more about Matthew Johns

Right arrow

Transparently caching others' data


Another very popularly used framework is Hibernate, used as an ORM (Object Relationship Mapper) layer, traditionally used to translate objects to and from a relational database table. While this goes against the distributed data philosophy we have been exploring with Hazelcast, we may have a legacy application that is currently using it. By adding a caching layer we can improve the scalability and performance of this application, however by enabling this cache layer we will be introducing a data consistency issue; to avoid this we would need an intelligent distributed cache, exactly like Hazelcast.

To enable the use of the cache layer, we must again include the appropriate hazelcast-hibernate-2.6.jar extension to the classpath. Additionally we need to turn on Hibernate's second level caching functionality and define the Hazelcast region-caching wrapper within its hibernate.cfg.xml configuration.

<hibernate-configuration>
  <session-factory>

...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Getting Started with Hazelcast
Published in: Aug 2013Publisher: ISBN-13: 9781782167303

Author (1)

author image
Matthew Johns

contacted on 6 may '16 ________ Matthew Johns is an agile software engineer and hands-on technical/solution architect; specialising in designing and delivering highly scaled and available distributed systems, with broad experience across the whole stack. He is the solution architect and lead engineer at Sky.
Read more about Matthew Johns