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 1B5D6F575 for ; Tue, 7 May 2013 10:33:10 +0000 (UTC) Received: (qmail 28052 invoked by uid 500); 7 May 2013 10:33:09 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 27539 invoked by uid 500); 7 May 2013 10:33:03 -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 27507 invoked by uid 99); 7 May 2013 10:33:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 10:33:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nicolae.petridean@gmail.com designates 209.85.128.180 as permitted sender) Received: from [209.85.128.180] (HELO mail-ve0-f180.google.com) (209.85.128.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 10:32:56 +0000 Received: by mail-ve0-f180.google.com with SMTP id pa12so326980veb.39 for ; Tue, 07 May 2013 03:32:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=A92YbUQcKoWQPks4xFXEDAlhQtgtbYNbjCllXz6ZIsY=; b=D9APeCs2ey1TvOomi/KxCu5vuxoKyNd8ROVdElrT5eFvDcwvG37XL+vQFRjQ5iKbfo LscPziiM5dkDr0i2q3PD/LmMJSyAxa35Q8aJroENlYY3oV5u/jpzc6gQmH012a8jeXtf v2zxqn1x9HfB3coqlYJCGCQAdEMB5HFk7O2USzQipHbD1k3iPchJF0AVWgr8F39eEZ7e m38bw2t8JYSuQCwpwoJ+PPjeIH58/GIwh3i1RP4wvTSJCxGCGX9xw7ZwMtq0udWSuHvP KK5dwDZNtSb1Qu+iqNY7kVGUaf32DahX1zCFUSAGfJx5KN4mqu+YubQTTws90mBzQlBT amMg== MIME-Version: 1.0 X-Received: by 10.220.155.8 with SMTP id q8mr728142vcw.42.1367922755473; Tue, 07 May 2013 03:32:35 -0700 (PDT) Received: by 10.58.144.200 with HTTP; Tue, 7 May 2013 03:32:35 -0700 (PDT) In-Reply-To: <5188C96E.2060909@gmail.com> References: <5188C96E.2060909@gmail.com> Date: Tue, 7 May 2013 13:32:35 +0300 Message-ID: Subject: Re: Cxf CDI and Jersey integration (No SPRING) From: Nicolae Petridean To: dev@cxf.apache.org Cc: =?ISO-8859-1?B?QW5kcuFzIEd5YWxhaSAtIEsu?= Content-Type: multipart/alternative; boundary=f46d043bdf9eeb984704dc1e551a X-Virus-Checked: Checked by ClamAV on apache.org --f46d043bdf9eeb984704dc1e551a Content-Type: text/plain; charset=ISO-8859-1 Hi Sergey, thanks for the quick answer. Tomee is not an option for us...too much EJB inside. The oAuth 2.0 resources will help. Nicu On Tue, May 7, 2013 at 12:29 PM, Sergey Beryozkin wrote: > Hi > > On 07/05/13 09:50, Nicolae Petridean wrote: > >> Hi guys, >> we are buidling an application that uses Jersey for exposing rest services >> and CDI for services management. >> We need to integrate this app with a 3rd party identity provider but we're >> also consider the opportunity to replace jersey with CXF. The problem is >> we >> do not have Spring in the application big picture. Can you help us with >> some examples or advise about how and if we should do it (integrate with >> jersey and CDI (Weld ) ? The security protocol we will use is also not >> clear yet. There is a possibility to use Oauth 2.0. >> > I'd recommend to ask a question about Jersey & CDI at the Jersey users > list, I'm pretty sure they support it in Glassfish. > > We do not have an explicit support for CDI in CXF. I think you can get CDI > + CXF working well in TomEE+ distro. See what we have about OAuth2 at the > moment: > > http://cxf.apache.org/docs/**jax-rs-oauth2.html > > Also check Apache Oltu for OAuth2 - that should work with Jersey/CXF too. > > > >> If you cannot answer fully to my question, maybe you can guide us to a CXF >> example without Spring. >> >> You can use CXFNonSpringJaxrsServlet, see > http://cxf.apache.org/docs/**jaxrs-services-configuration.**html#** > JAXRSServicesConfiguration-**ConfiguringJAXRSservicesincont** > ainerwithoutSpring > > HTH, Sergey > > > Thanks in advance, Nicu >> >> > > -- > Sergey Beryozkin > > Talend Community Coders > http://coders.talend.com/ > > Blog: http://sberyozkin.blogspot.com > --f46d043bdf9eeb984704dc1e551a--