user connection « Connection « JPA Q&A





1. how to pass user created connection to hibernate    stackoverflow.com

is there any way, to restrict hibernate not to create connection of its own(what we define in hibernate.properties or hibernate.cfg.xml), instead i can create and pass the connection to hibernate for ...

2. Per user connection    forum.hibernate.org

Hi, I'm trying to establish per user connection with Hibernate in a webapplication. The only way I found is to implement custom ConnectionProvider with static legacyConnectionPool. And before opening a session set the ConnectionProvider's static legacyConnectionPool to the connectionPool that will be held in an user's httpSession. But I'm not sure if it's safe enough. I'm afraid of the following scenario. ...

3. Best practices for user-supplied connections    forum.hibernate.org

Hello all, I will probably want to supply my own connections to hibernate. The hibernate in action book mentions, for example, to turn off autocommit on the connection if the connection is not created by hibernate. What are other things that are recommended to do to when supplying connections to hibernate? thank you, | eg |

5. limiting scope of user supplied connections?    forum.hibernate.org

This is really only of interest to those of you using Hibernate via the "user supplied connection" approach; i.e. you call SessionFactory.openSession(Connection). And more specifically, those of you that use this approach in conjunction with "long running sessions". The proposed change is to only accept these user supplied connections in openSession() and to no longer allow disconnect()/reconnect(Connection) sematics. This would align ...

6. Per user connections    forum.hibernate.org

For reasons unbeknownst to me, in an application we are building for a client instead of the usual app wide connection pool, they are passing our application a user/pass, and they want us to connect to the DB with that information for that person only. So each HttpSession would have its own unique DB connection for it to use only. Is ...

7. Change DB User Connection for Each Call    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Name and version of the database you are using: Oracle 10g Hi, We are currently using a Spring and Hibernate environment on top of an Oracle 10g database. 10g has many facilities to automatically filter data based on the database user id. We also want to use triggers that automatically provide ...

8. Losing connection to db with many users    forum.hibernate.org

Hi all, I'm using tomcat 6 + mysql + c3p0 connection pools + hibernate. If i test my web application with Apache JMeter simulating 100 users (threads?!) in a page, after 5-30 seconds i will lose the connection to db. If I redeploy the application it work again... In the tomcat manager I see 15'000/18'000 sessions :S Please help me and ...