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 5AFB4200B5E for ; Wed, 10 Aug 2016 16:13:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 59AA6160AA4; Wed, 10 Aug 2016 14:13: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 A0A36160A8F for ; Wed, 10 Aug 2016 16:13:49 +0200 (CEST) Received: (qmail 3455 invoked by uid 500); 10 Aug 2016 14:13: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 3443 invoked by uid 99); 10 Aug 2016 14:13:48 -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; Wed, 10 Aug 2016 14:13:48 +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 038291A13C1 for ; Wed, 10 Aug 2016 14:13:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.449 X-Spam-Level: * X-Spam-Status: No, score=1.449 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id lwAhxfhuIdNk for ; Wed, 10 Aug 2016 14:13:44 +0000 (UTC) Received: from mail-oi0-f43.google.com (mail-oi0-f43.google.com [209.85.218.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C416D5F297 for ; Wed, 10 Aug 2016 14:13:43 +0000 (UTC) Received: by mail-oi0-f43.google.com with SMTP id f189so60688841oig.3 for ; Wed, 10 Aug 2016 07:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=XvsDOA2pB5UwyxzqUUtfQz2pjIKZ5Si4+PRWsSz92YU=; b=TrhEcqAycXf5SgO2g+244Z0HGMJKvKCUT8lmNQiXyCD7g/eLgwwCcMyKy8g3tsn9mb j/cQnQzSTAucCWBZJM8qOhrpQp7X2W5KZcBPyEBYH8nTPMClThdeKdZTRZIATzwQ7j3Z 4jmB82RoCeAVzL3+nqWuQ+TkBOMOtptNcZ5op7H7LRalMHWEEfHqkxR3yCZle6QcipwF vTe2WOVsXTo+XYwhqwppFxfsKxOZkMlT1Iwc/gaY0uGMpaW6Ik0hoGJ09cuwGHOantJX NPKkFmJH7txpt/Z3QXhixmvW1ZRqTIFVfPUFYaneEGCvO+HGZg00dSoE2Hr33PsCxdL7 B00w== 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=XvsDOA2pB5UwyxzqUUtfQz2pjIKZ5Si4+PRWsSz92YU=; b=X2e3qkW+8CtcHFIb4cH/MwpiiWqbnrzjDeZhLxApXew4sxt3IEmlyT89YNF95A1aE4 N/DWqDUu44gv6EZ7bO7oi+TbDogQNAir/nsHd8TqMs0ixv/3AxjbRhuSM4M4fZ+f5OnN fP/6oxZAnU8wTDRKg+v8yXkZELfOJCi+5VwAaRWVE+Yo2qa7SvhlW5BkCafO0pUeKpQL saf2HGQglpipgGnKLSdvCleVwjsrsYwRIybsQcWZ1KU4CB4Kq1ByQrF3EfAjCIGPOm41 M7neE2tKOJd7sELGfE5VZWJyyNwd+l/iTBsDQkXa/9IUpc8eVhRWM3TM1AryowBHpxL7 XI+Q== X-Gm-Message-State: AEkooutJQKbHF1Fw5znUxFHpj43U97a1Qtdx7+VhnMeTMSp1IrtkK2/6UlRn9sOW6GzCKFirHtgvA0Ln4S/LGQ== X-Received: by 10.202.102.98 with SMTP id a95mr1937952oic.77.1470838422982; Wed, 10 Aug 2016 07:13:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.136.101 with HTTP; Wed, 10 Aug 2016 07:13:42 -0700 (PDT) In-Reply-To: <63A8EA1D-A785-429A-8138-9AC8A503B4BB@stefanutti.fr> References: <63A8EA1D-A785-429A-8138-9AC8A503B4BB@stefanutti.fr> From: Rajith Muditha Attapattu Date: Wed, 10 Aug 2016 10:13:42 -0400 Message-ID: Subject: Re: CDI - Having 2 contexts within the same JVM To: users@camel.apache.org Content-Type: multipart/alternative; boundary=001a114100e8b956c90539b84174 archived-at: Wed, 10 Aug 2016 14:13:50 -0000 --001a114100e8b956c90539b84174 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks guys for the information. I'm using 2.15 ...as thats the version bundled with the Fuse 6.2.1 release. On Tue, Aug 9, 2016 at 4:18 AM, Antonin Stefanutti wrote: > Hi, > > Camel CDI is capable of managing multiple Camel contexts within the same > JVM / same CDI container. You can find more information in > http://camel.apache.org/cdi.html#CDI-MultipleCamelcontexts. It documents > how to declare these contexts and how to bind RouteBuilder to them. > Generally, you would use the provided @ContextName qualifier to do the > binding though you can use your own qualifiers if needed. > > As Brad mentioned, you may want to precise / check the Camel version > you=E2=80=99re using. Indeed, multiple Camel context support has been gre= atly > improved since Camel 2.17.0. You may be able to use it before that but no= t > all the typical use cases will work. > > Let us know if that helps. > > Antonin > > > On 08 Aug 2016, at 20:48, Brad Johnson > wrote: > > > > Which framework and version of Camel are you using? > > > > On Mon, Aug 8, 2016 at 1:47 PM, Rajith Muditha Attapattu < > rajith77@gmail.com > >> wrote: > > > >> Hey All, > >> > >> Within the same JVM, there will be two camel contexts. > >> How do I mark a particular RouteBuilder to say it belongs to Context1 = vs > >> Context2 ? > >> > >> Is this even possible ? > >> > >> Regards, > >> > >> Rajith Muditha Attapattu > >> > > --=20 Regards, Rajith Muditha Attapattu --001a114100e8b956c90539b84174--