Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-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 B87AD10C13 for ; Mon, 9 Dec 2013 14:27:03 +0000 (UTC) Received: (qmail 25033 invoked by uid 500); 9 Dec 2013 14:27:02 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 24975 invoked by uid 500); 9 Dec 2013 14:27:02 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 24959 invoked by uid 99); 9 Dec 2013 14:27:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 14:27:01 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pbielicki@gmail.com designates 209.85.212.173 as permitted sender) Received: from [209.85.212.173] (HELO mail-wi0-f173.google.com) (209.85.212.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Dec 2013 14:26:55 +0000 Received: by mail-wi0-f173.google.com with SMTP id hn9so3845320wib.6 for ; Mon, 09 Dec 2013 06:26:35 -0800 (PST) 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=EsGHiVwhkl6Qn/ps+YBAOzdLayh2Qjlg8Es81sLSDxk=; b=uRmodJzQSHOLTxXw9oH/2FWV52rlhEPzXz7ncE4YCyrM8px4FBgQcysB9Gug7w4zdQ 5qhXbVedvVByYydEaE672WIuJCgcvhrEH9PmSogPQxh0CCjgN3p1IOLbxw3scL3nMVij ADMOmDbwtKMM+IfNcP8pahAxviDqu3+dQKAoFZzMKnYSPhxMzK7QBHkJzCjH11MsmX+w xRaQe4605XpQzepxEb9jxf6Rg9Eb7n+QmOvSWALTILSUuwJC1XG++AXydF0g6nzJ/dZ0 nh1Tn03LBvIN9OsFEiHme1eb5t9oT8AvrrM52xTXdrJ/aBSysAGVqF0UqhSKnt9vqrOH 10hA== MIME-Version: 1.0 X-Received: by 10.180.198.115 with SMTP id jb19mr14440962wic.28.1386599195416; Mon, 09 Dec 2013 06:26:35 -0800 (PST) Received: by 10.194.5.37 with HTTP; Mon, 9 Dec 2013 06:26:35 -0800 (PST) In-Reply-To: <52A5D171.1010709@gmail.com> References: <1386597934463-5737561.post@n5.nabble.com> <52A5D011.5060302@die-schneider.net> <52A5D171.1010709@gmail.com> Date: Mon, 9 Dec 2013 15:26:35 +0100 Message-ID: Subject: Re: Spring integration using @Configuration & @ComponentScan annotations From: =?UTF-8?Q?Przemys=C5=82aw_Bielicki?= To: dev@cxf.apache.org Content-Type: multipart/alternative; boundary=047d7b624e7e7d204304ed1ac84a X-Virus-Checked: Checked by ClamAV on apache.org --047d7b624e7e7d204304ed1ac84a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Sergey, I'm not sure CXF-5439 is a really great idea. For me all CXF components should be just annotated with @javax.inject.Named and then injected using @javax.inject.Inject or @javax.annotation.Resource. I prefer to use a well established standards instead of multiplying annotations - but maybe I am not aware of some limitations, issue you mentioned could solve. Anyway, my solution uses only javax.inject annotations and it works pretty well. I will file the jira issue soon (probably not today), and it should be clear then. Cheers, Przemyslaw On Mon, Dec 9, 2013 at 3:20 PM, Sergey Beryozkin [via CXF] < ml-node+s547215n5737565h68@n5.nabble.com> wrote: > Hi > > I added a prototype to the JAX-RS frontend, > > > http://svn.apache.org/repos/asf/cxf/trunk/rt/frontend/jaxrs/src/main/java= /org/apache/cxf/jaxrs/spring/SpringResourceServer.java > > (based on the code fragment from Vladimir Kulev) > > I think the similar thing can be done for all frontends indeed > > We probably should get > https://issues.apache.org/jira/browse/CXF-5439 > > fixed first > > Sergey > > > On 09/12/13 14:13, Christian Schneider wrote: > > > We have some factory classes but they are often not as convenient to us= e > > as the namespaces. > > > > In any case it would be interesting to see what you did. Can you open a > > jira and attach your code as a patch? > > If it is just a few lines you can also just paste the code or point to = a > > github repo or similar. > > > > Christian > > > > On 09.12.2013 15:05, pbielicki wrote: > >> Hi, > >> > >> in order to integrate CXF with Spring developers need to go through an > >> XML > >> file, right (i.e. > >> http://cxf.apache.org/docs/writing-a-service-with-spring.html)? > >> > >> Is it possible out-of-the box to integrate CXF with Spring using > >> annotation-driven context configuration? I am talking about > >> @org.springframework.context.annotation.Configuration and > >> @org.springframework.context.annotation.ComponentScan annotations > >> ( > http://docs.spring.io/spring/docs/3.2.x/javadoc-api/org/springframework/c= ontext/annotation/Configuration.html). > > >> > >> Are they supported by CXF integration? > >> > >> The goal is to avoid any XML configuration. > >> > >> If it's not part of CXF I may help because I just implemented such > >> integration (few lines of code, really), and I find it pretty useful. > >> > >> Please let me know what you think? I wanted to open a JIRA issue > straight > >> away but I prefer to ask you before. > >> > >> Cheers, > >> Przemyslaw Bielicki > >> > >> > >> > >> -- > >> View this message in context: > >> > http://cxf.547215.n5.nabble.com/Spring-integration-using-Configuration-Co= mponentScan-annotations-tp5737561.html > >> > >> Sent from the cxf-dev mailing list archive at Nabble.com. > > > > > > > -- > Sergey Beryozkin > > Talend Community Coders > http://coders.talend.com/ > > Blog: http://sberyozkin.blogspot.com > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://cxf.547215.n5.nabble.com/Spring-integration-using-Configuration-Co= mponentScan-annotations-tp5737561p5737565.html > To unsubscribe from Spring integration using @Configuration & > @ComponentScan annotations, click here > . > NAML > --047d7b624e7e7d204304ed1ac84a--