Return-Path: X-Original-To: apmail-tuscany-user-archive@www.apache.org Delivered-To: apmail-tuscany-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B317BEBD5 for ; Thu, 29 Nov 2012 22:02:31 +0000 (UTC) Received: (qmail 43133 invoked by uid 500); 29 Nov 2012 22:02:31 -0000 Delivered-To: apmail-tuscany-user-archive@tuscany.apache.org Received: (qmail 43056 invoked by uid 500); 29 Nov 2012 22:02:31 -0000 Mailing-List: contact user-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@tuscany.apache.org Delivered-To: mailing list user@tuscany.apache.org Received: (qmail 43048 invoked by uid 99); 29 Nov 2012 22:02:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 22:02:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ant.elder@gmail.com designates 209.85.214.181 as permitted sender) Received: from [209.85.214.181] (HELO mail-ob0-f181.google.com) (209.85.214.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2012 22:02:24 +0000 Received: by mail-ob0-f181.google.com with SMTP id oi10so3144313obb.26 for ; Thu, 29 Nov 2012 14:02:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VUc75KpLBuHmdUuFW0WVQ53oDkoGiUwYuu0o2VF22Ac=; b=MX6QCRQptZSyrEx+juiYrd/76Ufqdr9un+5XA/9huzJCHTgAQF9ICVF7xpngB8WoGo UhQQ7Eqf7vxfYl6jzYat/1ttuT5EtbZ/wYlv1TdGcoe7HdS3XA1ZHW8+jZEt5Ln6wjsf SYl52XDOMJRtYgTjXDO4K6le7x7QljfJLD9/BiQq1lMhaqPIS0ijHmVR+bA+ivmbPnbY 6oL1rQByJwR7kgxsPbEHRFeeMPj1SxKIewm1mRiKjUK0eGanC3vXum2YeyQDuY6dxf1+ seQMEJYpUvbbKBI+4w5lLrdYms5NVxVkVKgoxKAb4lT+13C0SpUP6vL3ZrfkEh89k3VP EH8Q== MIME-Version: 1.0 Received: by 10.182.192.100 with SMTP id hf4mr9133909obc.39.1354226523383; Thu, 29 Nov 2012 14:02:03 -0800 (PST) Received: by 10.60.98.173 with HTTP; Thu, 29 Nov 2012 14:02:03 -0800 (PST) In-Reply-To: <32F15738E8E5524DA4F01A0FA4A8E490AEAD5F0B@HQMBX5.eur.ad.sag> References: <32F15738E8E5524DA4F01A0FA4A8E490AEAD5BBB@HQMBX5.eur.ad.sag> <50B6FFB1.9060607@apache.org> <32F15738E8E5524DA4F01A0FA4A8E490AEAD5CF1@HQMBX5.eur.ad.sag> <50B7854A.8010804@apache.org> <32F15738E8E5524DA4F01A0FA4A8E490AEAD5E2B@HQMBX5.eur.ad.sag> <50B7A5B0.3090505@apache.org> <32F15738E8E5524DA4F01A0FA4A8E490AEAD5F0B@HQMBX5.eur.ad.sag> Date: Thu, 29 Nov 2012 22:02:03 +0000 Message-ID: Subject: Re: Get Contribution at runtime? From: ant elder To: user@tuscany.apache.org Content-Type: multipart/alternative; boundary=14dae9399dbddf299e04cfa96e88 X-Virus-Checked: Checked by ClamAV on apache.org --14dae9399dbddf299e04cfa96e88 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Nov 29, 2012 at 9:49 PM, Millies, Sebastian < Sebastian.Millies@softwareag.com> wrote: > > -----Original Message----- > > From: Simon Nash [mailto:nash@apache.org] > > Sent: Thursday, November 29, 2012 7:13 PM > > To: user@tuscany.apache.org > > Subject: Re: Get Contribution at runtime? > > [snip] > > > Would you like to create a new JIRA for the fault you discovered and > > needed to > > work around by creating > > PrioritizedContributionClassLoaderProviderExtensionPoint? > > > > Simon > > That would be https://issues.apache.org/jira/browse/TUSCANY-4074 > > Was this worthwhile? I suppose there won't be any more 1.x releases, > and there is a workaround. > > But perhaps you might want to check if a similar condition exists in 2.0. > > Yes there is in 2.x. Sorry i meant to talk more about it but have been snowed under the last days and didn't get a chance. In 2.x you can do all the things that have been talked about here, we do them in the appserver my company embeds Tuscany in. Its much easier in 2.x because its possible to modify the Contribution classloader after the contribution has been installed but before composites are started so you can just replace the classloader with one that does what you need. In an older version we also use the approach that you've just with pluging in a different classloader provider. I still actually think the original approach you suggested of including dependencies within the contribution and modifying search order so the contribution classes comes first sounds nice and simple and would be worth supporting too. ...ant --14dae9399dbddf299e04cfa96e88 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Thu, Nov 29, 2012 at 9:49 PM, Millies= , Sebastian <Sebastian.Millies@softwareag.com> wrote:
> -----Original Message= -----
> From: Simon Nash [mailto:nash@apach= e.org]
> Sent: Thursday, November 29, 2012 7:13 PM
> To: user@tuscany.apache.org=
> Subject: Re: Get Contribution at runtime?

[snip]

> Would you like to create a new JIRA for the fa= ult you discovered and
> needed to
> work around by creating
> PrioritizedContributionClassLoaderProviderExtensionPoint?
>
> =A0 =A0Simon

That would be https://issues.apache.org/jira/browse/TUSCANY-407= 4

Was this worthwhile? I suppose there won't be any more 1.x releases, and there is a workaround.

But perhaps you might want to check if a similar condition exists in 2.0.

Yes there is in 2.x. Sorry i meant to talk more about it but ha= ve been snowed under the last days and didn't get a chance. In 2.x you = can do all the things that have been talked about here, we do them in the a= ppserver my company embeds Tuscany in. Its much easier in 2.x because its p= ossible to modify the Contribution classloader after the contribution has b= een installed but before composites are started so you can just replace the= classloader with one that does what you need. In an older version we also = use the approach that you've just with pluging in a different classload= er provider. I still actually think the original approach you suggested of = including dependencies within the contribution and modifying search order s= o the contribution classes comes first sounds nice and simple and would be = worth supporting too.

=A0=A0 ...ant

=A0

--14dae9399dbddf299e04cfa96e88--