Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E61118B9C for ; Tue, 1 Dec 2015 12:05:36 +0000 (UTC) Received: (qmail 99206 invoked by uid 500); 1 Dec 2015 12:05:36 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 99154 invoked by uid 500); 1 Dec 2015 12:05:36 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 99143 invoked by uid 99); 1 Dec 2015 12:05:35 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Dec 2015 12:05:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 80BABC059B for ; Tue, 1 Dec 2015 12:05:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id PyFHGZB_EY5X for ; Tue, 1 Dec 2015 12:05:22 +0000 (UTC) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 39C4820512 for ; Tue, 1 Dec 2015 12:05:22 +0000 (UTC) Received: from mfilter18-d.gandi.net (mfilter18-d.gandi.net [217.70.178.146]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 607EF41C2C3 for ; Tue, 1 Dec 2015 13:05:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter18-d.gandi.net Received: from relay5-d.mail.gandi.net ([IPv6:::ffff:217.70.183.197]) by mfilter18-d.gandi.net (mfilter18-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id IvRwaUrAgjMx for ; Tue, 1 Dec 2015 13:05:14 +0100 (CET) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.10] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id ED5EB41C421 for ; Tue, 1 Dec 2015 13:05:13 +0100 (CET) Subject: Re: JAX-RS and Declarative services To: dev@karaf.apache.org References: <565D8610.7060409@gmail.com> From: =?UTF-8?Q?Jean-Baptiste_Onofr=c3=a9?= Message-ID: <565D8CF9.6040405@nanthrax.net> Date: Tue, 1 Dec 2015 13:05:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <565D8610.7060409@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit By the way, I don't see the bean (with @Activate) containing the CXF endpoint creation and registration. Or you can use CXF DOSGi (and so, you don't need @Activate). On the REST bean, you can add: @Component(service=HelloServiceRest.class, property={"service.exported.interfaces=*", "service.exported.configs=org.apache.cxf.rs", "org.apache.cxf.rs.address=/helloRest"}) Regards JB On 12/01/2015 12:35 PM, Morgan Hautman wrote: > Hi all, > > I'm working on a Karaf-boot sample to provide JAX-RS services using DS. > I already got the blueprint version working but I'm struggling with the > DS one.. and I need some help. > The code that I already got is here : > https://gist.github.com/mhautman/d580e6045fd999f9c10a > > My guess is that I need an @Activate but I don't know what to put in > there.. > > Hope someone can help me out,thanks! > > Regards, > Morgan > -- Jean-Baptiste Onofré jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com