Re: [hibernate-dev] Why does Hibernate has aggressive connection releasing for JTA

2015-12-10 Thread sebersole
Was already there :) https://hibernate.atlassian.net/browse/HHH-5184 -- View this message in context: http://hibernate-development.74578.x6.nabble.com/hibernate-dev-Why-does-Hibernate-has-aggressive-connection-releasing-for-JTA-tp759p905.html Sent from the Hibernate Development mailing list

Re: [hibernate-dev] Why does Hibernate has aggressive connection releasing for JTA

2015-12-10 Thread sebersole
rnate-dev-Why-does-Hibernate-has-aggressive-connection-releasing-for-JTA-tp759p904.html Sent from the Hibernate Development mailing list archive at Nabble.com. ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/lis

Re: [hibernate-dev] Why does Hibernate has aggressive connection releasing for JTA

2015-12-01 Thread Vlad Mihalcea
That sounds great. I'll have to write about it in the 5.0 documentation. Vlad On Mon, Nov 30, 2015 at 9:10 PM, Steve Ebersole wrote: > I'd like to test this later using the ConnectionAcquitionMode. In theory > this should led to zero overhead for real applications. > > P.S. I had to remove you

Re: [hibernate-dev] Why does Hibernate has aggressive connection releasing for JTA

2015-11-30 Thread Steve Ebersole
I'd like to test this later using the ConnectionAcquitionMode. In theory this should led to zero overhead for real applications. P.S. I had to remove your image as the mailing list does not accept attachments. On Thu, Nov 19, 2015 at 1:11 AM Vlad Mihalcea wrote: > I wrote a test to replicate t

Re: [hibernate-dev] Why does Hibernate has aggressive connection releasing for JTA

2015-11-18 Thread Steve Ebersole
Yes, I think that's a good idea. I also think working on ConnectionAcquisitionMode is the best option. The fact that Hibernate delays getting the Connection is so generally not useful. On Wed, Nov 18, 2015 at 9:42 AM Vlad Mihalcea wrote: > Thanks for the explanation. I found a discussion from

Re: [hibernate-dev] Why does Hibernate has aggressive connection releasing for JTA

2015-11-18 Thread Vlad Mihalcea
Thanks for the explanation. I found a discussion from 2006 where you explained this behavior: http://lists.jboss.org/pipermail/hibernate-dev/2006-December/000903.html I am currently testing the AFTER_TRANSACTION release mode with Spring and Bitronix and I think it can give some performance gain o

Re: [hibernate-dev] Why does Hibernate has aggressive connection releasing for JTA

2015-11-18 Thread Steve Ebersole
It was to work around certain containers (not just EE containers) that implement "resource containment" checks. The Hibernate Session defers getting a JDBC Connection until it actually needs one, which can lead to cases like the following where 2 beans share a Session/EM: Bean1: get Session, but

[hibernate-dev] Why does Hibernate has aggressive connection releasing for JTA

2015-11-17 Thread Vlad Mihalcea
Hi, Does anyone remember why does Hibernate support aggressive connection releasing? I've never found this requirement in either JTA or JDBC spec. Was it something required by the Java EE application server? Vlad ___ hibernate-dev mailing list hibernate