connection « Session « Spring Q&A





1. multiple session factories, one connection?    stackoverflow.com

To avoid XA overhead I prefixed some table names from project A and rolled it out to be inside the same mysql database as project B so I can use the ...

2. How to programmatically define a connection pool for multiple session factories    stackoverflow.com

I'm using Hibernate/Spring to dynamically access multiple databases. For each one of them I create a session factory, based on some input data (like the URL, the schema name, etc.). What ...

3. How to handle multiple database connections using session factories with Spring and Hibernate    stackoverflow.com

I'm really new to Hibernate and have been mulling over something for a while now. I have two databases that I have JNDI connection strings defined to in Tomcat's context.xml. In ...

4. Connection leaks with sessionFactory    forum.springsource.org

Connection leaks with sessionFactory Hi, I've got a strange behaviour with org.springframework.orm.hibernate3.annotation.Anno tationSessionFactoryBean I'm removing HibernateTemplate from an application to be less coupled to Spring, but I've got some session life ...

5. Pass DB connection on the fly to hibernate session for the DAO    forum.springsource.org

Pass DB connection on the fly to hibernate session for the DAO I am developing an application based on spring hibernate using myeclipse . I generated Spring DAOs using database explorer ...

6. Mysql connection expired in 8 hours, throw Session Already Close Exception.    forum.springsource.org

Hi All, I am currently facing on and mysql connection expire in 8 hours problems. The connection closed exception thrown and I tried so many configuration on hibernate properties and no ...

7. unclosed connection, forgot to call close() on your session?    forum.springsource.org

unclosed connection, forgot to call close() on your session? I have some classes that extend HibernateDaoSupport. When I run certain types of queries using inner classes like this: Code: public List ...

8. unclosed connection, forgot to call close() on your session?    forum.springsource.org

unclosed connection, forgot to call close() on your session? using spring and hibernate 3, stdout from jboss says: 16:11:46,352 WARN [ConnectionManager] unclosed connection, forgot to call close() on your session? extending ...

9. how many hibernet session & DB connection when crossing dao    forum.springsource.org

how many hibernet session & DB connection when crossing dao Hi Guys ----------------------------------------------------------------- [Q1] supposing no declirative transaction for MyService.doService() and i use hibernate template --- Class MyService ... public void ...





10. connection between 2 sessionFactories    forum.springsource.org

connection between 2 sessionFactories hello all! i have 2 session factories defined: Benutzer.hbm.xml BenutzerStatus.hbm.xml Zugang.hbm.xml AngebotRe7.hbm.xml Kurs.hbm.xml EmailCheck.hbm.xml VBenutzer.hbm.xml Profil.hbm.xml ...

11. Session Parameter in Connection    forum.springsource.org

Hi Folks, i have to set an oracle session parameter. Doing this in jdbc works like this: "ALTER SESSION SET NLS_NUMERIC_CHARACTERS='.,'" How can i pass this in the spring declaration of ...

12. ClassCastException with Session.connection()    forum.springsource.org

Hello, I have a class that extends HibernateDAOSupport class in which I am trying to get the actual connection. Code: DelegatingConnection delConnection = (DelegatingConnection) session.connection(); This is working fine with Hibernate ...

13. Sprint session timeout and Concurrent connections question    forum.springsource.org

Sprint session timeout and Concurrent connections question Hi everyone, I've noticed a lot of questions on session timeout and concurrent connections, but I haven't been able to get a definitive answer ...