Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 77852 invoked from network); 24 Sep 2007 16:00:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Sep 2007 16:00:13 -0000 Received: (qmail 33450 invoked by uid 500); 24 Sep 2007 16:00:04 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 33427 invoked by uid 500); 24 Sep 2007 16:00:04 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 33411 invoked by uid 99); 24 Sep 2007 16:00:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2007 09:00:04 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2007 16:02:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 94E2D71417D for ; Mon, 24 Sep 2007 08:59:50 -0700 (PDT) Message-ID: <12055987.1190649590606.JavaMail.jira@brutus> Date: Mon, 24 Sep 2007 08:59:50 -0700 (PDT) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Closed: (OPENJPA-380) Connecting to database when an unused emf is closed In-Reply-To: <18768738.1190400590931.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick closed OPENJPA-380. -------------------------------- > Connecting to database when an unused emf is closed > ---------------------------------------------------- > > Key: OPENJPA-380 > URL: https://issues.apache.org/jira/browse/OPENJPA-380 > Project: OpenJPA > Issue Type: Bug > Components: kernel > Affects Versions: 0.9.0, 0.9.6, 0.9.7, 1.0.0 > Reporter: Michael Dick > Assignee: Michael Dick > Priority: Minor > Fix For: 1.0.1, 1.1.0 > > > When an EMF is closed it attempts to get a MetaDataRepositoryInstance. If no instance has been created (the EMF hasn't been used) it will create a new one - which entails opening a connection to the database. > The MDR is only used to un-register itself as a class listener, so in this case it's rather pointless to create a new one. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.