| [Teneo] c3p0 and open connections [message #429000] |
Mon, 06 April 2009 14:15  |
Eclipse User |
|
|
|
When I use the following properties to enable c3p0
props.put(Environment.C3P0_MIN_SIZE, "1");
props.put(Environment.C3P0_MAX_SIZE, "20");
props.put(Environment.C3P0_TIMEOUT, "1800");
props.put(Environment.C3P0_MAX_STATEMENTS,"50");
The attached test program (hbds.initialize() method)creates 14 connections
to the oracle schema.
Although I have set the minimum pool size to 1.
I have attached the test program, ecore file and log file.
|
|
|
| Re: [Teneo] c3p0 and open connections [message #429012 is a reply to message #429000] |
Mon, 06 April 2009 15:33   |
Eclipse User |
|
|
|
Hi RJ,
The datastore.initialize() updates the database schema (if the corresponding hibernate option is set). Searching on the
internet gave me this one:
http://opensource.atlassian.com/projects/hibernate/browse/HH H-2343
The log shows that you are using Hibernate 3.2.1, apparently this is also what they talk about in that issue, which is
solved in hibernate 3.2.3.
gr. Martin
RJDAG wrote:
> When I use the following properties to enable c3p0
> props.put(Environment.C3P0_MIN_SIZE, "1");
> props.put(Environment.C3P0_MAX_SIZE, "20");
> props.put(Environment.C3P0_TIMEOUT, "1800");
> props.put(Environment.C3P0_MAX_STATEMENTS,"50");
>
> The attached test program (hbds.initialize() method)creates 14 connections
> to the oracle schema.
> Although I have set the minimum pool size to 1.
>
> I have attached the test program, ecore file and log file.
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
| Re: [Teneo] c3p0 and open connections [message #429019 is a reply to message #429012] |
Mon, 06 April 2009 16:00  |
Eclipse User |
|
|
|
thanks a lot.
"Martin Taal" <mtaal@elver.org> wrote in message
news:grdldo$aps$1@build.eclipse.org...
> Hi RJ,
> The datastore.initialize() updates the database schema (if the
> corresponding hibernate option is set). Searching on the internet gave me
> this one:
> http://opensource.atlassian.com/projects/hibernate/browse/HH H-2343
>
> The log shows that you are using Hibernate 3.2.1, apparently this is also
> what they talk about in that issue, which is solved in hibernate 3.2.3.
>
> gr. Martin
>
> RJDAG wrote:
>> When I use the following properties to enable c3p0
>> props.put(Environment.C3P0_MIN_SIZE, "1");
>> props.put(Environment.C3P0_MAX_SIZE, "20");
>> props.put(Environment.C3P0_TIMEOUT, "1800");
>> props.put(Environment.C3P0_MAX_STATEMENTS,"50");
>>
>> The attached test program (hbds.initialize() method)creates 14
>> connections to the oracle schema.
>> Although I have set the minimum pool size to 1.
>>
>> I have attached the test program, ecore file and log file.
>
>
> --
>
> With Regards, Martin Taal
>
> Springsite/Elver.org
> Office: Hardwareweg 4, 3821 BV Amersfoort
> Postal: Nassaulaan 7, 3941 EC Doorn
> The Netherlands
> Cell: +31 (0)6 288 48 943
> Tel: +31 (0)84 420 2397
> Fax: +31 (0)84 225 9307
> Mail: mtaal@springsite.com - mtaal@elver.org
> Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.03463 seconds