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

Radim Vansa (JIRA) issues at jboss.org
Thu Oct 16 02:33:36 EDT 2014


     [ https://issues.jboss.org/browse/ISPN-4539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the infinispan-issues mailing list