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.  [ 2 posts ] 
Author Message
 Post subject: Connection pooling with hibernet
PostPosted: Wed Feb 10, 2010 5:02 am 
Newbie

Joined: Wed Feb 10, 2010 4:52 am
Posts: 1
MY application used below configuration for connection pool in hibernet.cfg.xml file.

property name="connection.pool_size">1</property>


Below is my question?

1) will it enough hibernate take care of the inbuild connection pool.

My application has

Hibernet3.0
EJB
JMS
Websphere6.0

I am trying to use C3p0 , but i am unable to get the connection. I did the below things.

1).created hibernate.prop file and kept in classpath.

hibernate.c3p0.min_size=5
hibernate.c3p0.max_size=20
hibernate.c3p0.timeout=300
hibernate.c3p0.max_statements=50
hibernate.c3p0.idle_test_period=3000


2)configured below things at hibernet.cfg.xml file.

<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.timeout">300</property>
<property name="hibernate.c3p0.max_statements">50</property>
<property name="hibernate.c3p0.idle_test_period">3000</property>

Please help me out guys.


Top
 Profile  
 
 Post subject: Re: Connection pooling with hibernet
PostPosted: Wed Feb 10, 2010 8:46 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
I'd humbly suggest leveraging the WebSphere connection pooling features. Create a datasource in WebSphere, and use it!

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.