DB Connection Timeouts
- From: Dave Brown <dave@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Jul 2005 20:24:56 +0100
Hi All,
I'm quite new to j2se apps but have started doing one using swing for the gui. Anyway my previous work has been mainly J2EE apps where I always create a new connection to the DB using jdbc/connection pooling.
I've taken the same approach in my desktop application, each time I need to perform a query/update etc I create a new connection, do the work, then close it.
I was wondering if there really is any need to create a new connection everytime.. Since I'm using a local database to the app anyway (hsqldb),
would it be wiser to create one connection when my app starts and just use that each time.. Or would there still be a chance of it timing out.
Thanks for any responses in advance.
Dave .
- Follow-Ups:
- Re: DB Connection Timeouts
- From: Arnaud
- Re: DB Connection Timeouts
- From: Thomas Hawtin
- Re: DB Connection Timeouts
- From: joeNOSPAM@xxxxxxx
- Re: DB Connection Timeouts
- Prev by Date: Re: sql for csv and xls
- Next by Date: Re: sql for csv and xls
- Previous by thread: sql for csv and xls
- Next by thread: Re: DB Connection Timeouts
- Index(es):
Relevant Pages
|
|