[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] Re: Eclipselink without connection pool
|
- From: Thomas Haskes <t.haskes@xxxxxxx>
- Date: Wed, 29 Jul 2009 14:55:17 +0200
- Newsgroups: eclipse.rt.eclipselink
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.22 (Windows/20090605)
>> You will probably also want to set your connection pool size to 1 or 0.
Besides, how do I reduce the size of the connection pool to 0? I tried
using SessionCustomizer this way:
public void customize(Session session) {
ConnectionPool conpool =
((ServerSession)session).getDefaultConnectionPool();
conpool.setName("default");
conpool.setMinNumberOfConnections(0);
conpool.setMaxNumberOfConnections(0);
((ServerSession)session).addConnectionPool(conpool);
}
This there are still 7 connections opened when the first entitymanager
is created.
Later,
Tom