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 E5B7C10D1F for ; Sun, 16 Mar 2014 11:06:23 +0000 (UTC) Received: (qmail 70479 invoked by uid 500); 16 Mar 2014 11:06:23 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 70173 invoked by uid 500); 16 Mar 2014 11:06:22 -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 70164 invoked by uid 99); 16 Mar 2014 11:06:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Mar 2014 11:06:22 +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 claus.ibsen@gmail.com designates 209.85.213.169 as permitted sender) Received: from [209.85.213.169] (HELO mail-ig0-f169.google.com) (209.85.213.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Mar 2014 11:06:17 +0000 Received: by mail-ig0-f169.google.com with SMTP id h18so5486834igc.0 for ; Sun, 16 Mar 2014 04:05:56 -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 :content-type; bh=kSS0R0tTdfuixa1KKcJouf6JsKgOaZJxe9B4GMj5ro8=; b=cJ8g0q7ud8bBa64QNBr+owKQM4WyN+WhlfGUvm4V1WkDQhVuQvRwVTHp7ciAYcpV4m zWYN5s7LKxDU3iM3j0B0NFV5gbyCL3IZxoeLKlz3k2HEx/Y4XIQU6P7OjYM6tEA9icNm 4VB4DaXTdTyEIJfH7MVM6k6lc9JoGC+cHqKN7oQ56vCZM2U4LmI330gb2zpJE0qndOQ6 4KpbRWcPhKg7htLAyRkeYRLPRr+ndEdZIMvEarc8S7N9Jhc8Bbn7HCqPd/SRy3E4ZC0x B6R02OWf8HRmUW9KrXPVcWpAFE5LIvR7KRVHbsHW4NsyLx7IzAyIWpun3klpe7IXMzF8 +Q4Q== X-Received: by 10.50.225.134 with SMTP id rk6mr7154164igc.31.1394967956051; Sun, 16 Mar 2014 04:05:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.147.69 with HTTP; Sun, 16 Mar 2014 04:05:36 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Sun, 16 Mar 2014 12:05:36 +0100 Message-ID: Subject: Re: camel-protobuf and protobuf 2.5 To: dev Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Yeah we had a ticket about that https://issues.apache.org/jira/browse/CAMEL-3933 I have recompiled the sample code with the 2.5 compiler and upgrading the karaf features. So we should make this into the upcoming 2.13 release. On Sun, Mar 16, 2014 at 11:21 AM, Cristiano Costantini wrote: > Hi All, > > I see that the camel-protobuf karaf feature is using protobuf 2.3: > > karaf@root> features:info camel-protobuf > Description of camel-protobuf 2.12.3 feature > ---------------------------------------------------------------- > Feature has no configuration > Feature has no configuration files > Feature depends on: > camel-core 2.12.3 > Feature contains followed bundles: > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.protobuf-java/2.3.0_3 > start-level=50 > mvn:org.apache.camel/camel-protobuf/2.12.3 start-level=50 > > > As I use protobuf 2.5.0, I've tried manually to install latest protobuf > (note it is natively OSGi): > install -s mvn:com.google.protobuf/protobuf-java/2.5.0 > > and then manually install camel-protobuf: > install -s mvn:org.apache.camel/camel-protobuf/2.12.3 > > > This is an empirical test but I then was able to successfully unmarshal ( > https://github.com/cristcost/sensormix/blob/master/sensormix-integration-bundle/src/main/resources/META-INF/spring/beans-routes.xml#L65) > the class generated using protobuf 2.5.0 ( > https://github.com/cristcost/sensormix/blob/master/sensormix-integration-bundle/src/main/java/com/google/developers/gdgfirenze/protobuf/SensormixProtos.java > ) > > I wonder why the feature is still installing protobuf 2.3.0 and what else > could be missing to upgrade it. ;-) > > Regards, > Cristiano -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io