Caching using hibernate

Posted by Subhendu Mahanta on Stack Overflow See other posts from Stack Overflow or by Subhendu Mahanta
Published on 2011-01-08T04:49:42Z Indexed on 2011/01/08 4:53 UTC
Read the original article Hit count: 246

Filed under:

I have 2 applications.First one is a web application through which we provision reference data.Second one is an ESB based application where the reference data is used.The reference data changes but not very frequently.We needed to cache the reference data.The web application( I am not the owner) used hibernate. But my ESB based application did not.We only used EHCache. When reference data is changed by the independent web application that needs to be reflected in ESB application.We implemented using message queue - that is when reference data changes web application sends a message to the message queue.Our ESB application listens to that message & clears the cache & caches the data once again.This works.But it is time intensive.How can I use Hibernate to improve the situation?

Regards, Subhendu

© Stack Overflow or respective owner

Related posts about hibernate