Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-27 Thread Romain Manni-Bucau
Many thanks for your report! Very appreciated! Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn | Tomitriber 2015-

Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-27 Thread DonatasCiuksys
Yes, todays snapshot is working OK. Many thanks. Donatas -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-does-not-support-UNSYNCHRONIZED-PersistenceContext-tp4676564p4676625.html Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-26 Thread Romain Manni-Bucau
yes, issue was auto joining of the tx for stateful entity managers. Has been fixed as well but probably not yet propagated to the snapshot binaries. Now this test passes: @RunWith(ApplicationComposer.class) @Descriptors({ @Descriptor(name = "persistence.xml", path = "src/main/resources/META-I

Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-26 Thread DonatasCiuksys
Image below shows info on em.getDelegate(): -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-does-not-support-UNSYNCHRONIZED-PersistenceContext-tp4676564p4676608.html Sent from the T

Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-26 Thread DonatasCiuksys
Well, entityManager instance if of class JtaEntityManager, synchronizationType = UNSYNCHRONIZED, extended = true: Should I also check em.getDelegate()? -- View this message in context: http://tomee-openejb.979440.n4.nabb

Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-26 Thread Romain Manni-Bucau
Hi Donatas, did you check the entitymanager hibernate was providing you? Container only handles createEntityManager() call and SynchronizationType is now wired. Romain Manni-Bucau @rmannibucau | Blog | Github

Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-26 Thread DonatasCiuksys
Hi Romain, I checked with apache-tomee-7.0.0-20151026.041031-164-webprofile.zip and Hibernate 5.0.2, the bug is still present... Donatas -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-does-not-support-UNSYNCHRONIZED-PersistenceContext-tp4676564p4676604.

Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-23 Thread DonatasCiuksys
The fastest bugfix ever :) Many thanks :) Donatas -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-does-not-support-UNSYNCHRONIZED-PersistenceContext-tp4676564p4676570.html Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-23 Thread Romain Manni-Bucau
done https://issues.apache.org/jira/browse/TOMEE-1644 Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn | Tomitriber

Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-23 Thread Romain Manni-Bucau
I confirm it is a bug with EXTENDED usage, will fix it today probably and snapshot should be updated tomorrow Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn

Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-23 Thread Romain Manni-Bucau
In tx mode it is integrated if you want to check - will check extended mode later today Le 23 oct. 2015 11:44, "DonatasCiuksys" a écrit : > Yes, I have tried Hibernate 5.0.2, and the code above is writing to DB... > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.

Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-23 Thread DonatasCiuksys
Yes, I have tried Hibernate 5.0.2, and the code above is writing to DB... -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-0-does-not-support-UNSYNCHRONIZED-PersistenceContext-tp4676564p4676566.html Sent from the TomEE Dev mailing list archive at Nabble.com.

Re: TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-23 Thread Romain Manni-Bucau
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" a écrit : > Dear devs, > > I have tried to use unsynchronized PersistenceContext with TomEE 7.0.0M1 > (both OpenJPA and H

TomEE 7.0.0 does not support UNSYNCHRONIZED PersistenceContext

2015-10-23 Thread DonatasCiuksys
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) priva