Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 57352 invoked from network); 28 Mar 2007 20:31:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Mar 2007 20:31:25 -0000 Received: (qmail 89825 invoked by uid 500); 28 Mar 2007 20:31:32 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 89801 invoked by uid 500); 28 Mar 2007 20:31:32 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 89792 invoked by uid 99); 28 Mar 2007 20:31:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 13:31:32 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of plinskey@bea.com designates 66.248.192.39 as permitted sender) Received: from [66.248.192.39] (HELO repmmg02.bea.com) (66.248.192.39) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 13:31:23 -0700 Received: from repmmr02.bea.com (repmmr02.bea.com [10.160.30.72]) by repmmg02.bea.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l2SKV0d2022269 for ; Wed, 28 Mar 2007 13:31:03 -0700 Received: from repbex02.amer.bea.com (repbex02.bea.com [10.160.26.99]) by repmmr02.bea.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l2SKUxdL020242 for ; Wed, 28 Mar 2007 13:31:02 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: RE: WARNING: Connection not closed by caller - messagesproducedbyOpenJPA? Date: Wed, 28 Mar 2007 13:30:55 -0700 Message-ID: <7D856CDFE035FF45A0420ACBD71BDD6303AEC8CA@repbex02.amer.bea.com> In-Reply-To: <1175112497.4922.23.camel@burns> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: WARNING: Connection not closed by caller - messagesproducedbyOpenJPA? Thread-Index: AcdxdON/WE4xku2bS1iLy1kSjkHJ+AAAtArw References: <1175107659.4922.3.camel@burns> <7D856CDFE035FF45A0420ACBD71BDD6303AEC7FC@repbex02.amer.bea.com> <1175109234.4922.16.camel@burns> <7D856CDFE035FF45A0420ACBD71BDD6303AEC86F@repbex02.amer.bea.com> <1175112497.4922.23.camel@burns> From: "Patrick Linskey" To: x-BEA-PMX-Instructions: AV x-BEA-MM: Internal-To-External X-Virus-Checked: Checked by ClamAV on apache.org > I will give it a try. Can you explicitly confirm that it > shouldn't be a multithreading problem where there are > serveral entitymanagers > created in different JTA transactions running in parallel? e.g. Assuming that the different JTA transactions are on different threads, and that you do not try to access one EM from multiple threads, there should be no problem. (If you want to access a single EM from multiple threads, you should set the openjpa.Multithreaded property accordingly.) Also, it would be useful to see a JDBC trace-level log of the system running through a couple of transactions. That might give us an idea of how things are working. Are you ever sharing EMs across multiple sequential JTA transactions? -Patrick -- Patrick Linskey BEA Systems, Inc. _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. > -----Original Message----- > From: Hans J. Prueller [mailto:hans.prueller@gmx.net] > Sent: Wednesday, March 28, 2007 1:08 PM > To: open-jpa-dev@incubator.apache.org > Subject: RE: WARNING: Connection not closed by caller - > messagesproducedbyOpenJPA? > > Am Mittwoch, den 28.03.2007, 12:43 -0700 schrieb Patrick Linskey: > > > What happens if you set 'openjpa.TransactionMode' to > 'managed' as well? > > > > I will give it a try. Can you explicitly confirm that it > shouldn't be a multithreading problem where there are > serveral entitymanagers > created in different JTA transactions running in parallel? e.g. > > TX A starts > EM A created > A working > TX B starts > EM B created > A and B working > (this is where we currently get the errors) > ... > > > > Also, are you closing your EMs at the end of the transaction? > > > > not really. the problem is that we have serveral methods > calling each other - each of it creating its own EM at the > beginning. (which > will be the same EM instance regarding to the lookup code we > implementend - see previous mail). So close() of a sub-method would > call the "outer" methods EM too I guess? > > Hans > Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.