-2

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!

Farah
  • 2,469
  • 5
  • 31
  • 52
  • 1
    What's wrong with having a look at the Infinispan site? It took me less than two minutes to find this link ["Maven users"](http://infinispan.org/docs/7.0.x/getting_started/getting_started.html#_maven_users). There is also a quick start tutorial you can download and use as reference. – andih Mar 31 '14 at 13:36
  • 1
    Thank you for the dependency sir. I hope it is the only needed one. So what about the property name that would have as a value the node IP address?? ****. Because in my case, the node is remote, so the cache is not in the same JVM as it's explained in the doc. Thank you! – Farah Mar 31 '14 at 13:57
  • I don't understand the down votes. – bhantol Dec 09 '14 at 21:15

1 Answers1

0

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

andih
  • 5,570
  • 3
  • 26
  • 36
  • Hello! Thank you for your answer. Where can I find "server.xml"? – Farah Apr 01 '14 at 09:20
  • The `server.xml` file is located in the Tomcat configuration directory. For other environments either have a look at the documentation how to configure JNDI resources or use the possibility to provide cache configuration file name where you can put in all that advanced configuration stuff. – andih Apr 01 '14 at 10:52