Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-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 C85354F68 for ; Sat, 9 Jul 2011 09:33:15 +0000 (UTC) Received: (qmail 22083 invoked by uid 500); 9 Jul 2011 09:33:15 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 21852 invoked by uid 500); 9 Jul 2011 09:33:08 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 21809 invoked by uid 99); 9 Jul 2011 09:33:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jul 2011 09:33:07 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.146.183.188] (HELO nm14.bullet.mail.ukl.yahoo.com) (217.146.183.188) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 09 Jul 2011 09:32:59 +0000 Received: from [217.146.183.216] by nm14.bullet.mail.ukl.yahoo.com with NNFMP; 09 Jul 2011 09:32:38 -0000 Received: from [217.146.183.172] by tm9.bullet.mail.ukl.yahoo.com with NNFMP; 09 Jul 2011 09:32:37 -0000 Received: from [127.0.0.1] by omp1013.mail.ukl.yahoo.com with NNFMP; 09 Jul 2011 09:32:37 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 980261.25888.bm@omp1013.mail.ukl.yahoo.com Received: (qmail 71791 invoked by uid 60001); 9 Jul 2011 09:32:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1310203957; bh=q3HQPK1xRCUJ1V5jkqHWuBz5CsZxRSL078J+vuXoWgA=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=oqBlQr9hBaN8lsH+rHhsKBlkfpzWFXyJib43+BwNSYPfZKNWL9aDIp2nJxtW46vAaZeKa/81PWgK+y1uglMr1yL6IUIVAr5unlwixob1rVZ65FcHibvd4Hlb2Jib8DARYFkNMJ5A557AGFOlBZUAIEtFD41vXMVbKR6jWOinhk0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=TcAGMzWAhYP/hJsBnV3I6YdWb+0kmLhgXC/9TGeNEBonXn2m8EMspw5y67vUmuaqPqHyxO8Q2oGZ8GkCjTpIA3kzjF5ocOnjgZXW/sL8ZqSe//5u4Vb+ymU2N6MNFqJ3CZIxgcCVouS9KjxHdQVTcvh5TyRGTocbucu39PNjRzY=; X-YMail-OSG: .JOkw2gVM1mU1nqd_2lo3QuIsA1S2Q62WrX7v7bunOyGKFR Jdl4Ihi0bh17_O3lYXwenlcNFPHqVBrPaDDzlClV0fku8XiQJ.mLcgC21t.6 sMKsjq_CHZNLZUeEMEfNgeuldKl27.V82FZ4NDRqv97lDzyI1GHucJRBiPzH j0gdfg6f7M7XexY_v0N63221E.rsikdDl_hju.AAG6uaLjR1XeBwB0TZvbi4 i4yNytPIJ7lIagDRP0vycFt8cdZpi9mcszjUkOwg1INdyjxpr5Q_JlZ30O_M rB2MqDnQ._TmN9BDnV_Gw8QElyGnrH1nk49PoHCS7haWkrfrmSip_aIf6Iyz bozxjVveb_yygxVRbQnIbMoj8hg-- Received: from [80.108.122.184] by web27801.mail.ukl.yahoo.com via HTTP; Sat, 09 Jul 2011 10:32:37 BST X-Mailer: YahooMailClassic/14.0.3 YahooMailWebService/0.8.112.307740 Message-ID: <1310203957.52525.YahooMailClassic@web27801.mail.ukl.yahoo.com> Date: Sat, 9 Jul 2011 10:32:37 +0100 (BST) From: Mark Struberg Subject: RE: codi and webservices To: MyFaces Discussion In-Reply-To: <4E181120.6090205@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi Pieter! This is more a CDI container question than a CODI question :) >From the stacktrace you posted in an older post I saw that you are using Apache OpenWebBeans, right? good decision btw :D Since I know a little bit about OWB, I'll try to explain ;) Basically any Servlet inside your webapp already should have all things correctly setup. If you are interested in the details then check OWBs WebBeansConfigurationListener. If you are using CXFNonSpringServlet then the Servlet itself will not be created by CDI, so the servlet instance itself is not a CDI-managed object (Maybe there is some CXFCdiServlet in the future...) This basically means that any @Inject inside this class will not get injected. In this case you can use CODIs BeanManagerProvider to get access to a CDI managed bean manually. I use this trick with an old JAX-RS stack as well. hope this helps! LieGrue, strub --- On Sat, 7/9/11, Pieter Martin wrote: > From: Pieter Martin > Subject: RE: codi and webservices > To: "MyFaces Discussion" > Date: Saturday, July 9, 2011, 8:28 AM > Hi, > > Is there any support for having a webservice request > happening inside a cdi/codi world. In particular I am using > apache cxf in jetty, starting up the CXFNonSpringServlet > which does the magic. So I imagine somehow this servlet's > requests needs to be wrapped in a codi life cycle similar to > how faces works. > > Is this possible? > > Thanks > Pieter >