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: connection pool gets session.save() stuck
PostPosted: Thu Jul 26, 2007 9:18 pm 
Beginner
Beginner

Joined: Thu May 17, 2007 2:41 pm
Posts: 48
I have an application which works perfectly until I added in the connection pool. all I did was adding

properties.setProperty("hibernate.c3p0.max_size", "1");
properties.setProperty("hibernate.c3p0.min_size", "0");
properties.setProperty("hibernate.c3p0.timeout", "10000");
properties.setProperty("hibernate.c3p0.max_statements", "100");
properties.setProperty("hibernate.c3p0.idle_test_period", "300");
properties.setProperty("hibernate.c3p0.acquire_increment", "2");

to the Configuration properties. and session.save(object) stops working.

there is no error thrown. the insert statement was never issued as made evident by spy.log. and the thread remains a live. but the call never returns.

is this a known problem?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 26, 2007 9:20 pm 
Beginner
Beginner

Joined: Thu May 17, 2007 2:41 pm
Posts: 48
another funny thing.

the configuration with connection pool does work as long as no subclassing (with <union-subclass> was used. the combination of subclassing and connection pool causes this failure. this rings any bells?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 11:34 am 
Expert
Expert

Joined: Fri May 13, 2005 11:13 am
Posts: 292
Location: Rochester, NY
Is this a Java Hibernate question? This is the .NET NHibernate forum.


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.