Re: [hibernate-dev] Sessions sharing Connections

2012-03-19 Thread Steve Ebersole
As for the "how"... This happens when the user wants to open a session reusing pieces of another session. This is the org.hibernate.SharedSessionBuilder stuff. See org.hibernate.Session#sessionWithOptions if you are not familiar. On Mon 19 Mar 2012 10:36:41 AM CDT, Steve Ebersole wrote: > We

Re: [hibernate-dev] Sessions sharing Connections

2012-03-19 Thread Steve Ebersole
Well there are 2 options listed in the original email. So depends on which option you mean. Both options require some SPI changes. Actually, in the more minor one we could probably get away with retrofitting the old SPI methods via delegation+deprecation. Currently, Session maintains a Trans

Re: [hibernate-dev] Sessions sharing Connections

2012-03-19 Thread Scott Marlow
Which SPIs would change? JdbcCoordinator and TransactionCoordinator? How do we get into the situation of having 2 sessions share a JDBC connection? Does this impact both JPA and Hibernate native based applications? On 03/16/2012 09:27 AM, Steve Ebersole wrote: > Reference https://hibernate.on

Re: [hibernate-dev] Sessions sharing Connections

2012-03-18 Thread Steve Ebersole
Guys, its not a question of "will this get resolved". It will. It is a question of the best way to do that in regards to release methodology. On Sun 18 Mar 2012 03:35:02 AM CDT, Łukasz Antoniak wrote: > Hello all, > > I would also vote for fixing connection sharing issue as soon as possible. >

Re: [hibernate-dev] Sessions sharing Connections

2012-03-18 Thread Łukasz Antoniak
Hello all, I would also vote for fixing connection sharing issue as soon as possible. If this bug gets resolved, I will fix HHH-7017 in few minutes :). Regards, Lukasz ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org

Re: [hibernate-dev] Sessions sharing Connections

2012-03-16 Thread Adam Warski
> We could get away with them sharing a JdbcCoordinator as well, but that > opens up (slight) potential concurrency issues if the 2 sessions are > used concurrently. The question really is about the use cases. Are connections supposed to be used concurrently anyway? I think they are usually

Re: [hibernate-dev] Sessions sharing Connections

2012-03-16 Thread Shawn Clowater
Behalf Of Steve Ebersole Sent: Friday, March 16, 2012 7:28 AM To: hibernate-dev@lists.jboss.org Subject: [hibernate-dev] Sessions sharing Connections Reference https://hibernate.onjira.com/browse/HHH-7020 and https://hibernate.onjira.com/browse/HHH-7090... Essentially, having 2 sessions share a JDB

[hibernate-dev] Sessions sharing Connections

2012-03-16 Thread Steve Ebersole
Reference https://hibernate.onjira.com/browse/HHH-7020 and https://hibernate.onjira.com/browse/HHH-7090... Essentially, having 2 sessions share a JDBC connection is currently broken. Adam, Lukasz and I discussed this on the mailing list a few months ago and Shawn has been helping me investigat