SessionFactoryUtils « Session « Spring Q&A





1. Should I close connection when using SessionFactoryUtils    stackoverflow.com

If I want to use SessionFactoryUtils to get Connection directly to execute some SQL statement, and join the same transaction. Like this:

SessionFactoryUtils.getDataSource(getSessionFactory()).getConnection();
//some logic after Connection retrieved
Do I have to close Connection by ...

2. Using SessionFactoryUtils but session is not closing    forum.springsource.org

Dec 8th, 2004, 01:13 AM #1 Loumeister View Profile View Forum Posts Private Message Senior Member Join Date Aug 2004 Posts 208 Using SessionFactoryUtils but session is not closing I have ...

3. SessionFactoryUtils.getSession() before PROPAGATION_REQUIRED    forum.springsource.org

SessionFactoryUtils.getSession() before PROPAGATION_REQUIRED "GenerateLetters.java:42" calls SessionFactoryUtils.getSession(), before the adviced method "ProfileBuilderLogicSupport.java:542" is called. Problem: SessionFactoryUtils looks up the Session with SessionHolder.DEFAULT_KEY, though the Session is stored with the current transaction as ...

4. SessionFactoryUtils change    forum.springsource.org

SessionFactoryUtils change Just being curious. Why the change from Code: if (!allowCreate) { throw new IllegalStateException("No Hibernate session bound to thread, " + "and configuration does not allow creation of new ...

5. Unclosed connection when using SessionFactoryUtils    forum.springsource.org

Unclosed connection when using SessionFactoryUtils Using: Hibernate 2.1.8, JBoss 4.0.2 and Spring 1.2.4 I have a SLSB that has transaction attribute Required. This SLSB makes a call to another SLSB that ...

6. ERROR [SessionFactoryUtils] Could not close Hibernate Session    forum.springsource.org

Feb 16th, 2006, 09:51 AM #1 malmit View Profile View Forum Posts Private Message Junior Member Join Date Sep 2005 Posts 15 Problem closing hibernate session in SessionFactoryUtils I tried implementing ...

7. SessionFactoryUtils JtaSessionSynchronization.beforeCompletion swallowing exception    forum.springsource.org

SessionFactoryUtils JtaSessionSynchronization.beforeCompletion swallowing exception We are using Spring 1.2.5 with Weblogic 8.1.4 along with Hibernate 3.1.3 and container managed transactions. When an exception is thrown within the JtaSessionSynchronization.beforeCompletion method, the exception ...

8. SessionFactoryUtils.getDataSource()    forum.springsource.org

Is there a reason why SessionFactoryUtils.getDataSource() checks whether the sessionFactory is a LocalDataSourceConnectionProvider, but does not check whether it is a org.hibernate.connection.DatasourceConnectionProvi der? Is it because the latter wouldn't have registered ...

9. NullPointerException in SessionFactoryUtils.doClose    forum.springsource.org

NullPointerException in SessionFactoryUtils.doClose Hi First off, I would like to express gratitude for such a great framework. It sure makes my life much easier. I am using Spring's Transaction and hibernate ...