[jboss-jira] [JBoss JIRA] (WFLY-6127) Throw IllegalStateException if JTA tx has an unsynchronized persistence context and the target is synchronized persistence context
Scott Marlow (JIRA)
issues at jboss.org
Fri Sep 9 10:45:02 EDT 2016
[ https://issues.jboss.org/browse/WFLY-6127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291276#comment-13291276 ]
Scott Marlow commented on WFLY-6127:
------------------------------------
Thanks [~veselroger] for reporting the WFLY-7075 jira to add the suggested extension.
For applying the patch that you mention, for the org.jboss.as.jpa.container.ExtendedEntityManager.getSynchronizationType() to return the proper application specified SynchronizationType, could you please also create a tracking jira for that bug fix, which your comment correctly identifies as still unfixed after WFLY-6127 changes were applied. We need a separate jira for that bug fix because the changes for WFLY-6127 were already released in WildFly 10.1.0, so it would be confusing to reopen it. Thank you! -Scott
> Throw IllegalStateException if JTA tx has an unsynchronized persistence context and the target is synchronized persistence context
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-6127
> URL: https://issues.jboss.org/browse/WFLY-6127
> Project: WildFly
> Issue Type: Bug
> Components: JPA / Hibernate
> Affects Versions: 9.0.2.Final, 10.0.0.Final
> Reporter: Mazen Mahmoud
> Assignee: Scott Marlow
> Priority: Blocker
> Fix For: 10.1.0.CR1, 10.1.0.Final
>
> Attachments: server-log.txt
>
>
> SPEC: If a component is called and the JTA transaction is propagated into that component:
> If there is a persistence context of type SynchronizationType.UNSYNCHRONIZED
> associated with the JTA transaction and the target component specifies a persistence context of type SynchronizationType.SYNCHRONIZED, the IllegalStateException is thrown by the container
> We have a stateful session bean (SFB1) / PC: TRANSACTION/UNSYNCHRONIZED)
> stateful session bean (SFB2) / PC: TRANSACTION/SYNCHRONIZED)
> SFB1 method M1 (REQUIRED) calls SFB2 Method 2 (REQUIRED):
> PC is propagated from SFB1 to SFB2 without any exception.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list