Skip site navigation (1) Skip section navigation (2)

Re: DataSource.setMaxConnections() - Does not work

From: Michael Andreasen <michael(at)dunlops(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: DataSource.setMaxConnections() - Does not work
Date: 2009-09-26 13:27:24
Message-ID: c752d6bd0909260627lef23db4lc517c58de38b1ea0@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Even though I set it at 3, if I look on the server I can see many more
connections have been made?


On Sat, Sep 26, 2009 at 2:25 PM, Michael Andreasen <michael(at)dunlops(dot)com>wrote:

> Hi,
>
> Using version: 8.3-605.jdbc3
>
> DataSource.setMaxConnections() does not work.
>
> I create my datasource as such;
> dataSource = new PGPoolingDataSource();
>         dataSource.setServerName("10.44.73.50");
>         dataSource.setDatabaseName("ops");
>         dataSource.setUser("postgres");
>         dataSource.setPassword("postgres");
>         dataSource.setMaxConnections(3);
>
> --
> Regards,
> Michael Andreasen
> Senior Analyst / Developer
>



-- 
Regards,
Michael Andreasen
Senior Analyst / Developer

In response to

Responses

pgsql-jdbc by date

Next:From: Kris JurkaDate: 2009-09-26 13:51:12
Subject: Re: DataSource.setMaxConnections() - Does not work
Previous:From: Michael AndreasenDate: 2009-09-26 13:25:31
Subject: DataSource.setMaxConnections() - Does not work

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group