简体   繁体   中英

Infinispan : Remote Second Level Cache for Hibernate (JPA)

Does Infinispan support Distributed and Remote Second Level Cache for Hibernate when using JPA ?

Would you please give me the necessary Maven dependencies and the needed settings in persistence.xml ? Any other necessary settings (orther files) mentionned in your answer would be so appreciated.

EDIT 1

Why the downvotes? You can check this link no settings are mentionned. Would you please justify your downvotes?

EDIT : Details

What are the needed properties in persistence.xml to set the L2 cache in a remote cluster/node?

<property name="..." value="..." />

Thank you a lot!

All your questions are answered in the Infispan User Guide

For the Maven dependencies have a look here Maven users .

Using a remote second level cache is not recomenended but if you realy need it have a look at the advanced configuration section . There you have the option to provide a cache configuration file.

Another option is to configure your (Remote)CacheManager in your server.xml reference it via JNDI

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM