Hi
Should be supported with a jpa 2.1 implementation - ie hibernate or
eclipselink - but we may have an issue when used with extended.
Le 23 oct. 2015 11:31, "DonatasCiuksys" <[email protected]> a
écrit :
> Dear devs,
>
> I have tried to use unsynchronized PersistenceContext with TomEE 7.0.0M1
> (both OpenJPA and Hibernate 5.0.2):
>
> @Stateful
> @ConversationScoped
> public class MyBean {
> @PersistenceContext(type = PersistenceContextType.EXTENDED,
> synchronization = SynchronizationType.UNSYNCHRONIZED)
> private EntityManager em;
>
> public void doSomething() {
> em.persist(new Student());
> }
>
> }
>
> As PersistenceContext is unsynchronized, the code above should not write
> anything to DB (unless I call em.joinTransaction()). Yet it does.
>
> Is it a bug or not yet implemented Java EE 7 feature?
>
> Cheers,
> Donatas
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-does-not-support-UNSYNCHRONIZED-PersistenceContext-tp4676564.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>