Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5200317B79 for ; Fri, 13 Mar 2015 09:08:24 +0000 (UTC) Received: (qmail 65710 invoked by uid 500); 13 Mar 2015 09:08:14 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 65661 invoked by uid 500); 13 Mar 2015 09:08:14 -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 65649 invoked by uid 99); 13 Mar 2015 09:08:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2015 09:08:14 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of willem.jiang@gmail.com designates 209.85.223.177 as permitted sender) Received: from [209.85.223.177] (HELO mail-ie0-f177.google.com) (209.85.223.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2015 09:08:10 +0000 Received: by iegc3 with SMTP id c3so95569199ieg.3 for ; Fri, 13 Mar 2015 02:06:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:content-transfer-encoding:content-disposition; bh=rgZXdFf/eV0XQVKBmE/vFSM/i/Jy+FD+CaIqRXr1yPQ=; b=VBVwTglmCpMQZLrE+4xRu/RD36B+3h8bx1N4gOKyO3yVxDjJozl+bLVbK5UV1c2w+8 seVgp/PQsyA4UoOj8al+J0Szoni7qDN4Hm6VISO0b4NjWy81Guztb+grxvUj3K/t7v1f qouzfhvXcBoaerIeyoufJbfPUAjDjzw1mu67hzHvZWvXNsRr/T81b9UEqzfvXs0mhvLo rIZM9PfsTYPXk2PxipF+asAbcFgOqz4BPWLad5ljZ79OsuhJjzDhxnjSkw3M99H09U0x OhvqRSqTx/tSDYl19myDxIrjxnNBkuK45gE3yngI8OajGHu96InmzuHPT0eDADPCw8n9 8USA== X-Received: by 10.107.164.69 with SMTP id n66mr49165422ioe.82.1426237577680; Fri, 13 Mar 2015 02:06:17 -0700 (PDT) Received: from dhcp-129-218.nay.redhat.com ([119.254.196.72]) by mx.google.com with ESMTPSA id g195sm941475iog.24.2015.03.13.02.06.16 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Mar 2015 02:06:17 -0700 (PDT) Date: Fri, 13 Mar 2015 17:05:58 +0800 From: Willem Jiang To: users@camel.apache.org Message-ID: In-Reply-To: <1426087447647-5764011.post@n5.nabble.com> References: <1426011911992-5763950.post@n5.nabble.com> <1426017689968-5763957.post@n5.nabble.com> <3DFF4BC1-A01A-4BFB-92F5-C8C4B66EDB8C@rainyday.de> <1426087447647-5764011.post@n5.nabble.com> Subject: Re: Camel stop routes and start X-Mailer: Airmail (249) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Camel Context holds the reference of components, languages, data formats.= You cannot share the direct:endpoint across the camel context. I don=E2=80=99t think it=E2=80=99s not a good choice to create 100 camel = contexts in a single JVM. Can you try to create a new route instead restart the one route=3F -- =20 Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang =20 Weibo: =E5=A7=9C=E5=AE=81willem On March 11, 2015 at 11:24:34 PM, majid (mohamed.elgabbouch=40peerius.com= ) wrote: > I finally stopping the whole camel context. > =20 > I am wondering how costly is the operation of creation many camel conte= xts > (one per customer) =3F > I will have around 100 camel context in my JVM, is it expensive =3F or = should > I use only one =3F > =20 > =20 > =20 > -- > View this message in context: http://camel.465427.n5.nabble.com/Camel-s= top-routes-and-start-tp5763950p5764011.html =20 > Sent from the Camel - Users mailing list archive at Nabble.com. > =20