From dev-return-14289-apmail-aries-dev-archive=aries.apache.org@aries.apache.org Fri Oct 24 12:32:34 2014 Return-Path: X-Original-To: apmail-aries-dev-archive@www.apache.org Delivered-To: apmail-aries-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16DA217315 for ; Fri, 24 Oct 2014 12:32:34 +0000 (UTC) Received: (qmail 83230 invoked by uid 500); 24 Oct 2014 12:32:34 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 83180 invoked by uid 500); 24 Oct 2014 12:32:33 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 83168 invoked by uid 99); 24 Oct 2014 12:32:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2014 12:32:33 +0000 Date: Fri, 24 Oct 2014 12:32:33 +0000 (UTC) From: "Guillaume Nodet (JIRA)" To: dev@aries.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ARIES-1247) EntityManagerFactoryManager: remove the try of creation of EntityManagerFactories from Bundle.RESOLVED event MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ARIES-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet updated ARIES-1247: ----------------------------------- Affects Version/s: (was: jpa-container-context-1.0.3) jpa-container-1.0.1 > EntityManagerFactoryManager: remove the try of creation of EntityManagerFactories from Bundle.RESOLVED event > ------------------------------------------------------------------------------------------------------------ > > Key: ARIES-1247 > URL: https://issues.apache.org/jira/browse/ARIES-1247 > Project: Aries > Issue Type: Improvement > Components: JPA > Affects Versions: jpa-container-1.0.1 > Reporter: Andrei Shakirin > Assignee: Christian Schneider > Fix For: jpa-container-1.0.2 > > Attachments: ARIES-jpa-EntityManagerFactoryManager.patch > > > EntityManagerFactoryManager: > As it was already mentioned in ARIES-1160, I do not see any benefit for trying to create EntityManagerFactories on Bundle.RESOLVED event. > On time of Bundle.RESOLVED the bundle context is still not initialized and trying of creation EntityManagerFactory will likely failed (Hibernate and EclipseLink implementations are failed by lookup of DataSource service). > It only confuses user with a stack trace. > The EntityManagerFactories will be created a tick later on Bundle.ACTIVE event by calling registerEntityManagerFactories() method. > Patch is attached. -- This message was sent by Atlassian JIRA (v6.3.4#6332)