Re: relationship EntityManager and JDBC Connection?

2009-09-29 Thread Pinaki Poddar
elease the connection back to the pool." >>>>>> >>>>>> >>>>>> -Original Message- >>>>>> From: Christopher Giblin [mailto:c...@zurich.ibm.com] >>>>>> Sent: Monday, 28 September 2009 1:11 AM >>&

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Jean-Baptiste BRIAUD -- Novlog
iblin [mailto:c...@zurich.ibm.com] Sent: Monday, 28 September 2009 1:11 AM To: users@openjpa.apache.org Subject: relationship EntityManager and JDBC Connection? Hi, Does an EntityManager instance correspond one-to-one to a JDBC connection? When the EM is closed, is the JDBC connection closed? That

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Rick Curtis
t configuration, OpenJPA obtains JDBC connections on >>>> an >>>> as-needed basis. OpenJPA EntityManagers do not retain >>>> a connection to the database unless they are in a datastore >>>> transaction or >>>> there are open Query

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Jean-Baptiste BRIAUD -- Novlog
, EntityManagers request a connection for each query, then immediately release the connection back to the pool." -Original Message- From: Christopher Giblin [mailto:c...@zurich.ibm.com] Sent: Monday, 28 September 2009 1:11 AM To: users@openjpa.apache.org Subject: relationshi

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Jean-Baptiste BRIAUD -- Novlog
g optimistic transactions, EntityManagers request a connection for each query, then immediately release the connection back to the pool." -Original Message- From: Christopher Giblin [mailto:c...@zurich.ibm.com] Sent: Monday, 28 September 2009 1:11 AM To: users@openjpa.apache.or

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Rick Curtis
s request a connection for each >> query, then immediately release the connection back to the pool." >> >> >> -----Original Message- >> From: Christopher Giblin [mailto:c...@zurich.ibm.com] >> Sent: Monday, 28 September 2009 1:11 AM >> To: users@openjpa

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
g optimistic transactions, EntityManagers request a connection for each query, then immediately release the connection back to the pool." -Original Message- From: Christopher Giblin [mailto:c...@zurich.ibm.com] Sent: Monday, 28 September 2009 1:11 AM To: users@openjpa.apache.org Subject:

RE: relationship EntityManager and JDBC Connection?

2009-09-27 Thread C N Davies
" -Original Message- From: Christopher Giblin [mailto:c...@zurich.ibm.com] Sent: Monday, 28 September 2009 1:11 AM To: users@openjpa.apache.org Subject: relationship EntityManager and JDBC Connection? Hi, Does an EntityManager instance correspond one-to-one to a JDBC connection? When

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.

relationship EntityManager and JDBC Connection?

2009-09-27 Thread Christopher Giblin
Hi, Does an EntityManager instance correspond one-to-one to a JDBC connection? When the EM is closed, is the JDBC connection closed? That is, by opening and closing EMs, is one also opening and closing JDBC connections? I am using OpenJPA with Derby. There is no connection pooling: Sorry if