Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3C00A91D5 for ; Wed, 2 May 2012 03:25:49 +0000 (UTC) Received: (qmail 51758 invoked by uid 500); 2 May 2012 03:25:48 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 51549 invoked by uid 500); 2 May 2012 03:25:46 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 51506 invoked by uid 99); 2 May 2012 03:25:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2012 03:25:45 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.213.173 as permitted sender) Received: from [209.85.213.173] (HELO mail-yx0-f173.google.com) (209.85.213.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2012 03:25:38 +0000 Received: by yenr5 with SMTP id r5so238191yen.32 for ; Tue, 01 May 2012 20:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=bUfn92di/4iuAIJ+e8VySLaTv2PQFvTYPMe9cPaW1QU=; b=yzdAW8xfl6OWe1J1wEDKKHt/lCG5nY4i2TaDDWq3qY1IZPWSE31MOocMehRcq/Lo6W 4LTq2yBphZgf6bE0/j82Gr8/OLTNKfkToUGaUqo4XY1e4GHALgoBvc2Ud/h8FsvYdSf/ WR2CEBvaTf1DKLRuiuMhShsLlUjsUu3yX6hUVow6n4dEB22CKrfNZkZc5g6G0z3wJXCG 3q5eYIr36tGUDv4RDhJ/DfNJ3ZlKTWMc3BrTrQackPakWG9wN8Hw+ZSN7bsafKQZW1Bw 2oO18InzISF0AWsh0ztR/r5s18Fqtfx2V1FxBakB2n9J58kVusNmsxb61OWE/UILjESv ybLw== Received: by 10.68.191.137 with SMTP id gy9mr14148908pbc.83.1335929116923; Tue, 01 May 2012 20:25:16 -0700 (PDT) Received: from [192.168.0.158] ([125.34.6.250]) by mx.google.com with ESMTPS id vc1sm265804pbc.56.2012.05.01.20.25.13 (version=SSLv3 cipher=OTHER); Tue, 01 May 2012 20:25:15 -0700 (PDT) Message-ID: <4FA0A916.5090603@gmail.com> Date: Wed, 02 May 2012 11:25:10 +0800 From: Willem Jiang User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120420 Thunderbird/12.0 MIME-Version: 1.0 To: dev@camel.apache.org Subject: Re: Problem with Camel commands and and Karaf 3 References: <4F9E58D6.7060903@die-schneider.net> <4F9E7C37.9090503@nanthrax.net> In-Reply-To: <4F9E7C37.9090503@nanthrax.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit It could easy for us to break the dependency of karaf 2.2.x when the karaf 3.x is out. I don't think the define gogo and karaf import as optional can make the camel command support the karaf 2.2.x and karaf 3.x at the same time, if the user still want to use the camel command. On Mon Apr 30 19:49:11 2012, Jean-Baptiste Onofré wrote: > Hi, > > For the others, the incompatible stuff are: > - the version range in the OSGi import statement (it should be > something like [2.2,4) instead of [2.2,3) > - in Karaf 3.0 (trunk), we moved some packages from gogo to karaf, and > so the import statement should be improved > > On the other hand, in Karaf 3.0, we introduce shell namespace 1.1 > instead of 1.0 which is better for commands definition. > > I'm not very in favour of extracting the commands from the camel-core > feature. However, it can make sense: > - if an user doesn't want to provide shell commands in its Karaf > runtime (for instance, to force management of routes via JMX or pro > grammatically) > - to fix the current issue > > However, I see different solutions: > - once Karaf 3.0 is out, why not to decide the "break" the Karaf 2.2 > in Camel or CXF. It's what we already did. For instance, with Karaf < > 2.2.6, you can't install latest CXF version (due to a missing feature > provided by Karaf). So we "forced" users to upgrade to a new Karaf > 2.2.x version. It's right that it's a "minor" ugprade comparing to > Karaf 3.0 > - we can stay with shell 1.0.0 namespace, upgrade the version range to > [2.2,4) and define gogo and karaf import as optional. Like this we can > support both Karaf 2.2 and Karaf 3.0 version in the same CXF/Camel > version. > - provide a "transition" package in Karaf 3.0 (gogo package) which use > the Karaf one. > > Regards > JB > > On 04/30/2012 11:18 AM, Christian Schneider wrote: >> Hi all, >> >> we provide some camel commands for karaf in our distro. With Karaf 3 >> there are some incompatible changes in the command API. So currently >> camel does not install on Karaf 3. >> I will try to work out a solution for the commands to ideally make them >> compatible. >> >> For the moment though I propose we remove the command bundle from the >> camel-core feature and move it to a command that can be installed >> spearately. So Camel can already be used and tested on Karaf 3. Is this >> ok? If yes for what versions of camel should I do this change? I think >> 2.9.x and trunk could make sense. >> >> Christian >> > -- Willem ---------------------------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang