Re: relationship EntityManager and JDBC Connection?

2009-09-29 Thread Pinaki Poddar
> Any link ? http://openjpa.apache.org/faq.html#FAQ-HowdoIenableconnectionpoolinginOpenJPA%253F Jean-Baptiste BRIAUD -- Novlog wrote: > > Thanks. > > On Sep 28, 2009, at 16:18 , Rick Curtis wrote: > >> >> http://commons.apache.org/dbcp/configuration.html >> >> >> Jean-Baptiste BRIAUD -- Novlo

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Jean-Baptiste BRIAUD -- Novlog
Thanks. On Sep 28, 2009, at 16:18 , Rick Curtis wrote: http://commons.apache.org/dbcp/configuration.html Jean-Baptiste BRIAUD -- Novlog wrote: OK, it works but I'd like to set more options in the persistence.xml like the pool size. I didn't find how to set that up. Any link ? Thanks. On

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Rick Curtis
http://commons.apache.org/dbcp/configuration.html Jean-Baptiste BRIAUD -- Novlog wrote: > > OK, it works but I'd like to set more options in the persistence.xml > like the pool size. I didn't find how to set that up. Any link ? > > Thanks. > > On Sep 28, 2009, at 15:32 , Rick Curtis wrote:

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Jean-Baptiste BRIAUD -- Novlog
OK, it works but I'd like to set more options in the persistence.xml like the pool size. I didn't find how to set that up. Any link ? Thanks. On Sep 28, 2009, at 15:32 , Rick Curtis wrote: I'd suggest using DBCP for connection pooling when not running in a JEE environment. Checkout this blo

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Jean-Baptiste BRIAUD -- Novlog
Wow, thanks a lot. This is clear, short, efficient. I'm trying it right now ! By the way, thanks for your blog that I read in the past and also helped me choosing OpenJPA. On Sep 28, 2009, at 15:32 , Rick Curtis wrote: I'd suggest using DBCP for connection pooling when not running in a JEE

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Rick Curtis
I'd suggest using DBCP for connection pooling when not running in a JEE environment. Checkout this blog post [1] that I wrote about this very issue a few months back. -Rick [1] http://webspherepersistence.blogspot.com/2009/01/jpa-connection-pooling.html On Mon, Sep 28, 2009 at 3:53 AM, Jean-Bapt

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Daryl Stultz
On Mon, Sep 28, 2009 at 4:53 AM, Jean-Baptiste BRIAUD -- Novlog < j-b.bri...@novlog.com> wrote: > OK, so is there a way to have add pool behavior with only JDBC (without > J2EE) ? > > There are a number of ways to do this. I wanted to integrate with my existing application framework and connection

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Jean-Baptiste BRIAUD -- Novlog
OK, so is there a way to have add pool behavior with only JDBC (without J2EE) ? On Sep 28, 2009, at 05:04 , C N Davies wrote: The doc says: "EntityManagerFactory instances are heavyweight objects. Each factory might maintain a metadata cache, object state cache, EntityManager pool, conne

RE: relationship EntityManager and JDBC Connection?

2009-09-27 Thread C N Davies
The doc says: "EntityManagerFactory instances are heavyweight objects. Each factory might maintain a metadata cache, object state cache, EntityManager pool, connection pool, and more." "2.6.3. openjpa.jdbc.DriverDataSource Property name: openjpa.jdbc.DriverDataSource Configuration API: org.apache

Re: relationship EntityManager and JDBC Connection?

2009-09-27 Thread Christopher Giblin
... more to the background of my problem : I create an EM instance and loop, calling persist() on perhaps > 2,000 objects in batches of 50. I run netstat -an | grep 1527 and observe thousands of TCP sessions being open and closed. Eventually, there are almost 4,000 TCP sockets in TIME_WAIT state.