-->
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: Shall I use a Connection Pool for my Desktop app?
PostPosted: Fri Apr 04, 2008 10:33 am 
Newbie

Joined: Fri Feb 29, 2008 7:05 am
Posts: 13
Location: New Delhi, India
Hi all,

I am working on a desktop application and I have used Spring and Hibernate for the good stuff they do for developers.

My application is taking few mili-seconds to create a db connection each time something is to be done with the data base. Please tell me how can I save these mili-seconds. I could have used DBCP or C3P0 but thought that these technologies may be an overkill for my modest, single user desktop application. Also they will add to the footprint.

Is there any way, may be in Spring, Hibernate or JDBC so that I just instatiate a single connection (at application start) and use it for all the DB releated operations?

Any help will be much appreciated.

Thanks,
Nitin


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 04, 2008 1:45 pm 
Newbie

Joined: Mon Jan 23, 2006 12:37 pm
Posts: 16
I know you think it would be overkill to add DBCP or C3PO, but you could just set the pool size to 1.


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.