Hi,
Do others agree that the next JPA specification release (2.2?) should
reconsider allowing an UNSYNCHRONIZED persistence context that is joined
the JTA transaction, be propagated into a SYNCHRONIZED persistence
context? This was originally tracked via JPA_SPEC-6 [1] but no feedback
was given. Recently, I heard some feedback that WildFly should allow
this behavior via WFLY-7075 [2] + as comments on WFLY-6127 [3].
If we reopen JPA_SPEC-6 [1], that could bring an improvement to
applications, to avoid the IllegalStateException when persistence
context propagation of (JTA joined) UNSYNCHRONIZED persistence context
into a SYNCHRONIZED persistence context, which I believe should be allowed.
What do you think?
Thanks,
Scott
[1]
https://java.net/jira/browse/JPA_SPEC-6
[2]
https://issues.jboss.org/browse/WFLY-7075
[3]
https://issues.jboss.org/browse/WFLY-6127