Hi Alice, OpenJPA's L2 Cache provider is pluggable. Ehcache did provide a plugin for their cache [1], but this was some time ago and I don't know if they have kept it up-to-date.
WebSphere also provided a plugin for their Dynacache offering [2]. This was introduced in the WAS v8.0 timeframe. I'm not aware of any issues related to this usage. I am not aware of any memcache plugin. But, since the cache plugin is public from an OpenJPA perspective [3], there is nothing stopping anybody from writing their own plugin. Good luck, Kevin [1] http://ehcache.org/documentation/integrations/openjpa-provider [2] http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.nd.doc/ae/rdyn_openjpa.html [3] http://ci.apache.org/projects/openjpa/trunk/docbook/manual.html#ref_guide_cache On Tue, Mar 11, 2014 at 11:04 AM, Alice <ashanai...@yahoo.com> wrote: > Thank you Rick for your response. I will check again to make sure we have > bi-directional relation. We see this issue only when the parent entity has > been saved before the FK entity is saved. I will confirm the bi-directional > relation. > > Is there a way to plug in an external cache regardless of the issue? > > best, > > Alice > > > > -- > View this message in context: > http://openjpa.208410.n2.nabble.com/Issue-with-OpenJPA-default-cache-use-external-cache-tp7586064p7586073.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >