[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] Re: Eclipselink without connection pool

>> 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