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 F2276925E for ; Fri, 31 Aug 2012 09:18:17 +0000 (UTC) Received: (qmail 76647 invoked by uid 500); 31 Aug 2012 09:18:17 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 75064 invoked by uid 500); 31 Aug 2012 09:18:10 -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 74634 invoked by uid 99); 31 Aug 2012 09:18:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 09:18:07 +0000 Date: Fri, 31 Aug 2012 20:18:07 +1100 (NCT) From: "Tuomas Kiviaho (JIRA)" To: dev@aries.apache.org Message-ID: <1596482228.21428.1346404687889.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (ARIES-913) Deterministic handling order of application context bundles MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Tuomas Kiviaho created ARIES-913: ------------------------------------ Summary: Deterministic handling order of application context bundles Key: ARIES-913 URL: https://issues.apache.org/jira/browse/ARIES-913 Project: Aries Issue Type: Improvement Components: Application Reporter: Tuomas Kiviaho Currently ApplicationManagerImpl uses hash sets/maps to preserve and provide bundles which effectively loses the order in which they were originally described in APPLICATION.MF. The order is also important in following scenario where several bundles override stdout one after the other. app context start start gogo # Preserves orginal state of system out start sysout-over-slf4j # Preserves gogo's system out app context stop stop gogo # Reverts system out back to original state stop sysout-over-slf4j # Reverts system out back to gogo's system out Here the stdout is left pointing into already stopped bundle causing all kind of problems. The situation can be improved by applying uninstall and stop in reverse order compared to install and start which guarantees that at least behaviour of an individual application context is consistent. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira