Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 828EA200B59 for ; Mon, 8 Aug 2016 15:23:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7F95A160A91; Mon, 8 Aug 2016 13:23:50 +0000 (UTC) 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 C441D160A8F for ; Mon, 8 Aug 2016 15:23:49 +0200 (CEST) Received: (qmail 57421 invoked by uid 500); 8 Aug 2016 13:23:48 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 57409 invoked by uid 99); 8 Aug 2016 13:23:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2016 13:23:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0BBC8186264 for ; Mon, 8 Aug 2016 13:23:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=mediadriver-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 9Y9J3TddyRyY for ; Mon, 8 Aug 2016 13:23:43 +0000 (UTC) Received: from mail-ua0-f197.google.com (mail-ua0-f197.google.com [209.85.217.197]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DFAD15F1A0 for ; Mon, 8 Aug 2016 13:23:42 +0000 (UTC) Received: by mail-ua0-f197.google.com with SMTP id u13so63376490uau.2 for ; Mon, 08 Aug 2016 06:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mediadriver-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=JRJNoWWVCzYDcryFhvb0hvFBUNf6IfAchKYbruOEEL0=; b=oYfmmqJi4uqKuDYOGF9aMQE9rGRoLILjuy6Y86H5aTO9b/ZB4j10Ekc1qtyzgqApmt llh64GtJudlmtRCD6jHslU2lgZ2CaCk/y61lSMhEJKHz2weIDW39CzAQV6bf/nnhElNC TG4g0mJ9TQYKFXnXto3VWEUtRVo5ZO4WaC7VzOCWrDDCKuomVD7p1QaBMyjPkhztJRl3 x2F2CGBv1D4EDLyo21BdZ+va4K90j6ZpA4A5Z7LmgkSnhjqlX4/YG4wDdhzwUESbV/YN x4w7qr5ezwuho6u4sa+jz2ANRqiyufY15LPtfcX7QMJBff+l5KgR0yFm32pt4X9PPPuP KtBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=JRJNoWWVCzYDcryFhvb0hvFBUNf6IfAchKYbruOEEL0=; b=CZADE+QtWr/y0koA9eUAh1Hi3zj5hUoF2jyL1eOC0N+zV7+pZG2h2+jdujtX9T8tii N9i7ecQ9IIzl5bw9QL2XVLooOy6Fu6hfXRcGR6rc6RMXO8ZzfvGNDBGNs1naJXoe7i4m U79D9KORczIO5rOVOt7vH1FWFDrUpWOehFfiWA0YWUc3PC4xJv7O+/4E+LQCcMsHc1xh /xdv5/tndqjSUzUP8LGOc7+/usLZiNPFsKVn37J0lUqhaYo435xC9+rlIWBf/xQLsDh2 TBrLwOeplyNwDC6zQcV0f4iWqxPvTnTHc+B2MiQaeC+qwcpQmOglaVdGdWeXPzcSMk+p mTUw== X-Gm-Message-State: AEkoouuxRwX+l40FVHYdcKhS0Z7YqeYwVUM6M3C/YyI50hEbC7w+N68hptf6kPkz7CKtV/vfuSAHUdTduJKBU+ub X-Received: by 10.55.87.67 with SMTP id l64mr14331539qkb.171.1470662622108; Mon, 08 Aug 2016 06:23:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.134.70 with HTTP; Mon, 8 Aug 2016 06:23:41 -0700 (PDT) In-Reply-To: <4A1466B8-BDD2-4AF6-BE95-9AF551321919@stefanutti.fr> References: <4A1466B8-BDD2-4AF6-BE95-9AF551321919@stefanutti.fr> From: Brad Johnson Date: Mon, 8 Aug 2016 08:23:41 -0500 Message-ID: Subject: Re: CDI before Camel 2.17? To: users@camel.apache.org Content-Type: multipart/alternative; boundary=001a114e6e582d081b05398f535a archived-at: Mon, 08 Aug 2016 13:23:50 -0000 --001a114e6e582d081b05398f535a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Excellent. That's pretty much what I'm looking for since I recognize it is a matter of evolving toward that and not needing to jump into it whole hog. I can probably live with CamelTestSupport with out the CDI runner for the time being as well. Part of the problem is the underlying mechanisms aren't obvious to me since I've been using Spring and then Blueprint for so long and I've pretty much always gone with hand wiring of internals. I'm not sure where the future is going with Blueprint, DS, SCR, CDI, Spring Boot, Delta Spike, etc. but the Camel RouteBuilder will be germane in all situations and for now I'm using Blueprint for very basic bootstrap. While I commonly use OSGi services and export and reference them from my bundles, to be honest I could live without them if necessary. I mean the great benefit for me in using OSGi with Camel is the classloader segregation and ability to hide internal classes in a bundle. But I can always run routes between bundles to accomplish much the same thing that service provide and, in a way, it is more portable. But the ease of wiring that CDI provides is compelling and I'm very excited about that future. On Mon, Aug 8, 2016 at 4:21 AM, Antonin Stefanutti wrote: > Hi Brad, > > The examples (camel-example-cdi.*) that are available in > https://github.com/apache/camel/tree/master/examples should work to some > great extent in Camel versions prior to 2.17.0. > > As these examples concentrate on the non-advanced features and the new > version of Camel CDI introduced in 2.17.0 managed to be largely backward > compatible, these should work in prior versions with some little adaptati= on. > > You can find some more details about these non backward compatible change= s > in https://issues.apache.org/jira/browse/CAMEL-9201 and > http://camel.apache.org/camel-2170-release.html. > > For testing, Camel CDI test won't be available, though you can use plain > Arquillian testing support. You can find more info in > http://camel.apache.org/cdi-testing.html. > > If that=E2=80=99s not enough for you to wait until Camel 2.17 / Fuse 6.3,= let me > know and we=E2=80=99ll try to help you further. > > Antonin > > > On 06 Aug 2016, at 00:30, Brad Johnson > wrote: > > > > Are there any good examples of how to use CDI with Camel before 2.17? > > Obviously that's a better option to go with and when the Fuse 6.3 relea= se > > hits it's first milestone that's what I'll go to but until then I can u= se > > Camel 2.17 CDI test but have to use the older features with Fuse 6.2.1. > > > > Unless there's a patch or upgrade that does this already? > > > > Brad > > --001a114e6e582d081b05398f535a--