Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AAEF8166998 for ; Tue, 25 Jul 2017 14:03:14 +0200 (CEST) Received: (qmail 71972 invoked by uid 500); 25 Jul 2017 12:03:13 -0000 Mailing-List: contact users-help@ace.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@ace.apache.org Delivered-To: mailing list users@ace.apache.org Received: (qmail 71954 invoked by uid 99); 25 Jul 2017 12:03:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2017 12:03:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 929741A1D4B for ; Tue, 25 Jul 2017 12:03:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.022 X-Spam-Level: X-Spam-Status: No, score=-0.022 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=luminiseu.onmicrosoft.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id pi0zEROuE_n5 for ; Tue, 25 Jul 2017 12:03:10 +0000 (UTC) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0090.outbound.protection.outlook.com [104.47.1.90]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D0D2F5F3CC for ; Tue, 25 Jul 2017 12:03:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=luminiseu.onmicrosoft.com; s=selector1-luminis-eu; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=efAOhUnvaSlPLkZ3/PiHJnXmpvP15735LEJi4XC8s48=; b=WcR18m/FrQla91wzobsYkWaoOuEM6whQDvlcZfN2yIUa22EW/AQpY0ckdFYSztK2xmHzf5JMAPQu7Hnzs04v3Wp49ZRX97aj6c5J+skAw2gq59obnCzKMGwLYDMlnpKtc4GZ3uZX4paarTpw9tF5gou531LtRhwOJ6pIhILhuz8= Received: from AMSPR03MB406.eurprd03.prod.outlook.com (10.242.21.144) by AMSPR03MB406.eurprd03.prod.outlook.com (10.242.21.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10; Tue, 25 Jul 2017 12:03:02 +0000 Received: from AMSPR03MB406.eurprd03.prod.outlook.com ([fe80::1dd:8c63:8c9:41bf]) by AMSPR03MB406.eurprd03.prod.outlook.com ([fe80::1dd:8c63:8c9:41bf%16]) with mapi id 15.01.1282.017; Tue, 25 Jul 2017 12:03:02 +0000 From: Jan Willem Janssen To: "users@ace.apache.org" Subject: Re: What is the ordering of the resources in the deployment package manifest? Thread-Topic: What is the ordering of the resources in the deployment package manifest? Thread-Index: AQHTBJI5A9xwx5kuwkyRjKjkI0niw6JkcsaA Date: Tue, 25 Jul 2017 12:03:02 +0000 Message-ID: <47C7982A-A3D9-47F1-9EFD-2E0FE20132C9@luminis.eu> References: In-Reply-To: Accept-Language: en-US, en-GB, nl-NL Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=janwillem.janssen@luminis.eu; x-originating-ip: [80.100.196.56] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AMSPR03MB406;7:Z/UUFNDCCRZbZ+CDA9XoswJ7O3Ae4J92mnm9Hc7iWgmUT0kcEFZ8rCg+vjuWjD4/BjHxdZRgfgK4KMbZMMh9WfUeOlGPcPe3fDav8Y33DuG6CAhH6QnaIuk0Br5joHIBcSvH0sUzIvaw8bamn0RFbvtbFCbpxnU0wpND1p7gqLPGMdmJQlR1RkBYG3/sLL/0Y+L33lrwlD/y+JZgxzfcPrVrCRGfC2T1tgAzHDGrmy8Z46nf5W5cAXxxg2qpvMeXNDtrPDYaa4zzgUgtXOCB9jQraP4Dg6Jiu8XwUbfFsUDB0K0Cq8tY8Ys392hSRWhN9RrXeYwULdNZ7CVfrH/9kc3jiFHi6nRd4cdnLSkuGFIUD/u1U5oQOZtfe1WI3HZWA6Zf2PO2qjvO3lgu6NcgsdLxzySSqqFPXGwRhJFN7AFbeiRh0KAxU696beA6XrvR54wVhq4o7E85fIBzTKepXmbhC9Scj3LutGIgldDp4T+Xmc0JiEyLhdXCSEvsygPP1RHyDydWhwbTgzad9UpRXmvYr/T+d+v6xpJbnOKsd3N3neMnZssYC82ApUMOsI9vpy5/jr/P5SQk5Z7VhE32MD1Z5kgnFc8aVXE+nEEg/hpjSUuWY15lv9XkP4dW1SOlGuaUNdFJAkncRZvWIHrqpY7OPoLwlagrV4N27nus4vXqThpWsIQa2tNJZJkYpQj8AJGodv8Nj4UU2pVCKH9ju8W/9VXjcq09+//gWB7/pxhgQr42TdCOFy7U039rRg7iLysfrP4ZnqkfFMMWUh8+Y87QS+eJo0YtAUmngyP4uWo= x-ms-office365-filtering-correlation-id: 3c3f812b-73cf-4113-a26a-08d4d35519bb x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(2017052603031)(49563074)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:AMSPR03MB406; x-ms-traffictypediagnostic: AMSPR03MB406: x-exchange-antispam-report-test: UriScan:(134217032509453); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(102415395)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6041248)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:AMSPR03MB406;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:AMSPR03MB406; x-forefront-prvs: 03793408BA x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39830400002)(39410400002)(39450400003)(39400400002)(199003)(129404003)(24454002)(189002)(966005)(2906002)(33656002)(76176999)(5250100002)(14454004)(105586002)(2351001)(106356001)(101416001)(189998001)(50986999)(3660700001)(2900100001)(99936001)(53546010)(3280700002)(2501003)(6486002)(82746002)(7736002)(54356999)(25786009)(6506006)(97736004)(1730700003)(86362001)(102836003)(229853002)(68736007)(5660300001)(66066001)(36756003)(2950100002)(5640700003)(38730400002)(81156014)(6436002)(305945005)(83716003)(478600001)(81166006)(110136004)(74482002)(99286003)(8676002)(6116002)(6246003)(3846002)(8936002)(53936002)(6306002)(6916009)(6512007);DIR:OUT;SFP:1102;SCL:1;SRVR:AMSPR03MB406;H:AMSPR03MB406.eurprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: luminis.eu does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/signed; boundary="Apple-Mail=_634AF625-3586-4E31-B4B5-6F19FE8327A3"; protocol="application/pgp-signature"; micalg=pgp-sha256 MIME-Version: 1.0 X-OriginatorOrg: luminis.eu X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jul 2017 12:03:02.0938 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 92b1c82c-10a6-40ec-8b2e-1e63eeb29438 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AMSPR03MB406 --Apple-Mail=_634AF625-3586-4E31-B4B5-6F19FE8327A3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Guillaume, > On 24 Jul 2017, at 17:33, Guillaume Durand wrote: >=20 > The order in which bundles and resources are processed by the > DeploymentAdmin is important, e.g. a resource depending on another = should > be deployed after it. > This may be well managed for osgi bundles and configuration, but when > working with arbitrary resources, this order must be set somewhere. > For instance, if I want to deploy wars on a servlet container, I want = to > deploy the associated configurations (possibly templated) before the = wars. >=20 > How is determined the order in which the resources are listed in the > deployment package manifest? And how to change it? The deployment admin spec is written specifically for a situation in = which an OSGi environment is to be provisioned, as such it makes a clear = distinction between bundle and non-bundle resources. Ordering between non-bundle = resources is considered as they are always processed *before* the bundles are = started. The idea behind this is that bundles are either the consumer of = non-bundle resources, or that the non-bundle resources are self-contained. Now, ACE uses the deployment admin as primary means for installation of deployment packages on a target. As such, ordering in non-bundle = resources is not guaranteed, nor changeable at the moment. It is an interesting idea, = and would make ACE be usable in a much generic context than it currently = would be. I=E2=80=99ve created for = that, and implemented a first approach already on the trunk of ACE. So, you can = give it a go if you want. Basically, you can register your own ArtifactDataHelper service that = will be called right before the deployment package is created. It allows you to = tweak the order in which the artifacts are to be included in the deployment = package. Hope this helps, -- Met vriendelijke groeten | Kind regards Jan Willem Janssen | Software Architect +31 631 765 814 My world is something with Amdatu and Apache Luminis Technologies John F. Kennedylaan 32 7314 PS Apeldoorn +31 88 586 46 25 https://www.luminis.eu KvK (CoC) 09 16 28 93 BTW (VAT) NL8170.94.441.B.01 --Apple-Mail=_634AF625-3586-4E31-B4B5-6F19FE8327A3 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: (JaWi) iQIcBAEBCAAGBQJZdzN0AAoJEKF/mP2eHDc4D8gQALfKXkLsZp1Gn2PYTz7ki2+G Hsek8dMmAnfAZSRIE2BaBhP3Orf66oe8HoD1zJg7jQbG5n0XpOUnMpBbkIUkExZw Xrzs7bSk/gQT448PLkMn5S4kXKlUUpAM7GxfmMfmQm0e/rJJiWFaXyG5E0q123D8 EZcYgIBKcx9XoNJJ09iklt8WcCTd9ngzE12pG2qkK+z+mFbRSWxCnbdI6syN9efa VKo9N54X5VllT41Br+Nz7tS33oO1W9DqclxEIeY4L04kQJLH2RV9m1yLsmwLXLr+ l05eVY2rsFHuc/6BpJ7Mwg+3FJFYfOt/Wp+dH5QsD0xc0/LDCeMKqhzwosxJ8d5I vcGdB8UQr+RQsmbRR9dHVEX6PPKEzyCOowZnPdhyrZfFIKFHhtBFRphAi6AWcn+k poThX9APgamPSY53ZP+wxHqxfpqVjIHabRy1o86SYyVctXjGYmJuUAYbWM4u/Q5e Ga3cxiP17BE89JecYVnmyDloxr1DzUCn79hCu1238IziQoTBXS9ssOC5EBy51OkF ksJbIqIdgPX3J+1S1GcEFHFUGwgYWrTLV2tXCp66ljmJOOrfYoog/+GA49Dhg1FR d6xKYr1D4G/UgEWiUD43FitAnKc8R2hMz6yEIeW7Qdb0t64QQXv8md+MFVzrBPhH BWfEHsRfr73JpSLmTeMa =hyPn -----END PGP SIGNATURE----- --Apple-Mail=_634AF625-3586-4E31-B4B5-6F19FE8327A3--