[infinispan-issues] [JBoss JIRA] (ISPN-4539) JPACacheStore is associating same objects to multiple EntityManagers

Sanne Grinovero (JIRA) issues at jboss.org
Thu Jul 17 12:02:29 EDT 2014


Sanne Grinovero created ISPN-4539:
-------------------------------------

             Summary: JPACacheStore is associating same objects to multiple EntityManagers
                 Key: ISPN-4539
                 URL: https://issues.jboss.org/browse/ISPN-4539
             Project: Infinispan
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Loaders and Stores
            Reporter: Sanne Grinovero
            Assignee: Radim Vansa


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.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the infinispan-issues mailing list