-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: When exactly are connections created?
PostPosted: Fri Dec 11, 2009 1:06 pm 
Newbie

Joined: Tue Nov 04, 2008 2:22 pm
Posts: 4
When I look at the SessionFactory API for the openSession() method it states:

"Create database connection and open a Session on it. "

I am running in JBoss using a container managed connection pool. If i do something like:

Session session = sessionFactory.openSession();

and then look at the number of session in the pool that are in use it shows 0. This means that the statement in the API that says that openSessions() creates a database connection either isn't accurate or not as detailed as it should be.

At what point in application execution is a connection actually taken from the pool?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.