Home » Support » Forum » JPA Level 2 Cache - app config

JPA Level 2 Cache - app config

#1

Hello! I would like to use selective cache for JPA Level 2 (cached in EntityManagerFactory) in one app, but no cache at all in another app. Both will be connected to the same ObjectDB server & db.

Where and how can I set this to work for ObjectDB?

http://www.objectdb.com/java/jpa/setting/entities#The_cache_element_ specifies only amount of MB used for Level 2 cache, but the config is at server level, yet I need it at application level.

This is a "must need" in order to use ObjectDB for this project.

Any help, please?

#2

You can configure the L2 cache in the application level (and even in class / operation levels).

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#3

Phew. Thanks a lot.

I saw that part which specified just config in server and I got "scared", that I didn't search further.

Great. Have a nice day!


Post Reply

To post a reply and/or subscribe to update notifications - please login