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 480FC18F16 for ; Mon, 6 Jul 2015 10:25:31 +0000 (UTC) Received: (qmail 18362 invoked by uid 500); 6 Jul 2015 10:25:30 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 18314 invoked by uid 500); 6 Jul 2015 10:25:30 -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 18302 invoked by uid 99); 6 Jul 2015 10:25:30 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jul 2015 10:25:30 +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 1D3EF1A67B0 for ; Mon, 6 Jul 2015 10:25:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.463 X-Spam-Level: **** X-Spam-Status: No, score=4.463 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=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Tu7ATWfwkxto for ; Mon, 6 Jul 2015 10:25:14 +0000 (UTC) Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 77AE22502C for ; Mon, 6 Jul 2015 10:25:04 +0000 (UTC) Received: by wiga1 with SMTP id a1so224515765wig.0 for ; Mon, 06 Jul 2015 03:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=52HgW8c4/FFZxYaYEnLMR8n7G1M6B0MwoRV0IFMWrOU=; b=ojwq8nbuwnzSfMDR1PIEhcQMipN2CNsDxOpMWCGGuixerpMEdRuA3Dz7aVrmyWE3e1 Qi0H9BNkPv+4+p9OYlSpLvOQzUwUxS8C0B8d8DngzRvaauIbFzQdEP4/AEdB7PbIaBQj D5TUwmmi2yeJHivik2/1bApkfsVI07aMyqL3alpW6KdlZv6pnMlw43rp7ZD8/spUNWLV /bNFY9cBJ/q4Qlmkx3XEo8Q9nvO1RsDK2j6qKeOkdTBDFhixNRCjvl4dy7gOcloGlOgx ZMUqOp6g8SRMOFE40WjIqDBks75XSxROjaZwT+M24uADqL8JNWkxHqTbBD+dzKtTDzAN bcCQ== MIME-Version: 1.0 X-Received: by 10.180.206.211 with SMTP id lq19mr94075577wic.81.1436178303759; Mon, 06 Jul 2015 03:25:03 -0700 (PDT) Received: by 10.194.200.3 with HTTP; Mon, 6 Jul 2015 03:25:03 -0700 (PDT) In-Reply-To: References: <1435920830815-5768848.post@n5.nabble.com> Date: Mon, 6 Jul 2015 12:25:03 +0200 Message-ID: Subject: Re: Consuming messages in camel cdi From: Charlie Mordant To: users@camel.apache.org Content-Type: multipart/alternative; boundary=001a11c381c6a13dc9051a325148 --001a11c381c6a13dc9051a325148 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Claus, If you want to take a look at the (succeeding for RouteBuilder, failing for others) sample: * The one failing (@Consume but that isn't RouteBuilder): https://github.com/OsgiliathEnterprise/net.osgiliath.parent/blob/master/net= .osgiliath.framework/net.osgiliath.features/net.osgiliath.feature.itests/ne= t.osgiliath.feature.itest.messaging.cdi/src/main/java/net/osgiliath/messagi= ng/cdi/repository/impl/HelloJMSCDIRepository.java * The one working (RouteBuilder): https://github.com/OsgiliathEnterprise/net.osgiliath.parent/blob/master/net= .osgiliath.framework/net.osgiliath.features/net.osgiliath.feature.itests/ne= t.osgiliath.feature.itest.messaging.cdi/src/main/java/net/osgiliath/messagi= ng/cdi/repository/impl/RouteConsumer.java * The according integration test: https://github.com/OsgiliathEnterprise/net.osgiliath.parent/blob/master/net= .osgiliath.framework/net.osgiliath.features/net.osgiliath.feature.itests/ne= t.osgiliath.feature.itest.messaging.cdi/src/it/java/net/osgiliath/messaging= /cdi/repository/impl/itests/ITHelloServiceJMS.java Its not minimal (we've got to extract a minimal sample to avoid having to build the entire framework), but I can do it if you ask. Regards, 2015-07-06 11:25 GMT+02:00 Claus Ibsen : > Hi > > Are you able to build a little sample project? Also the bean you added > @Consume does it have any cdi annotations so camel-cdi is able to > manage it? That would be required for it to work. > > On Fri, Jul 3, 2015 at 12:53 PM, Ted wrote: > > Hi Tchari, > > > > I'm having this same problem with CDI and a POJO consumer with an > annotated > > method @Consumer("direct:someEndpoint"). > > > > I get the error message "no consumers available on endpoint". > > > > I inspected the CDI registry (this.camelContext.getRegistry()) and I ca= n > see > > my POJO is in the registry. > > > > Has anyone managed to resolve this or am I missing something? > > > > Thanks > > > > Ted > > > > > > > > -- > > View this message in context: > http://camel.465427.n5.nabble.com/Consuming-messages-in-camel-cdi-tp57484= 89p5768848.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > 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 > hawtio: http://hawt.io/ > fabric8: http://fabric8.io/ > --=20 Charlie Mordant Full OSGI/EE stack made with Karaf: https://github.com/OsgiliathEnterprise/net.osgiliath.parent --001a11c381c6a13dc9051a325148--