In chapter 12 of JPA Pro, Shared Cache section:
The shared cache is manipulated in JPA through a slim javax.persistence.Cache interface. An object that implements Cache can be obtained from the entity manager factory by invoking EntityManagerFactory.getCache()....
So, if the entity manager is not created by the entity manager, does it mean shared cache is not applicable ?
this is supposed to be a surprise, but it smells like a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!