]
Radim Vansa updated ISPN-4539:
------------------------------
Assignee: (was: Radim Vansa)
JPACacheStore is associating same objects to multiple EntityManagers
--------------------------------------------------------------------
Key: ISPN-4539
URL:
https://issues.jboss.org/browse/ISPN-4539
Project: Infinispan
Issue Type: Bug
Components: Loaders and Stores
Reporter: Sanne Grinovero
An object instance can be managed by at most one EntityManager (at a time). The pattern
used in the JPACacheStore's process method is illegal.
The solution is to clear the primary EntityManager and pass the detached data to the
second EntityManager.
There is a comment about something similar being needed in MySQL when there is a single
connection; I'd rather check to have multiple connections available to avoid
deadlocks.