users@jpa-spec.java.net

[jpa-spec users] late feedback on https://java.net/jira/browse/JPA_SPEC-6 and propagation from persistence context UNSYNCHRONIZED (joined to JTA transaction) into SYNCHRONIZED

From: Scott Marlow <smarlow_at_redhat.com>
Date: Thu, 22 Sep 2016 10:39:40 -0400

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