Scott Marlow created WFLY-6135:
----------------------------------
Summary: Throw IllegalStateException if JTA tx has an unsynchronized
persistence context and the target is synchronized persistence context
Key: WFLY-6135
URL:
https://issues.jboss.org/browse/WFLY-6135
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 9.0.2.Final
Reporter: Scott Marlow
Assignee: Scott Marlow
Priority: Minor
Fix For: 10.1.0.Final
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)