-->
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.  [ 3 posts ] 
Author Message
 Post subject: C3PO Issue
PostPosted: Fri Jun 08, 2007 10:56 am 
Beginner
Beginner

Joined: Sun Nov 19, 2006 6:18 am
Posts: 28
I am using C3p0 connection pool in my code.
I have a question. I went through the C3P0ConnectionProvider class in the hibernate source code.
The function closeconnection in this class closes the connection with the underlying database.Is this True? I want to confirm it.


if i do session.close(),then hibernate calls the close function of the ConnectionProvider class which in this case is
C3P0ConnectionProvider and its close methond would close the underlying connection.

Is my understanding rite? Please correct me if i am wrong.

According to me session.close() should return the conn object back to the pool..

Kindly help


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 09, 2007 1:12 pm 
Beginner
Beginner

Joined: Sun Nov 19, 2006 6:18 am
Posts: 28
Kindly help plz


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 11, 2007 11:52 am 
Beginner
Beginner

Joined: Mon May 21, 2007 5:22 pm
Posts: 27
Location: Salt Lake City
Have you read property [code]destroy-method="close"[/code] of c3p0.
Might it give some more information to you.[/code]

_________________
Try 'N' Enjoy !!
Rahul

If helpful do rating ....


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

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.