Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-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 D9E00DC56 for ; Wed, 8 Aug 2012 07:16:28 +0000 (UTC) Received: (qmail 21994 invoked by uid 500); 8 Aug 2012 07:05:14 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 21238 invoked by uid 500); 8 Aug 2012 07:04:50 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 20930 invoked by uid 99); 8 Aug 2012 07:04:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2012 07:04:46 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sberyozkin@gmail.com designates 209.85.215.169 as permitted sender) Received: from [209.85.215.169] (HELO mail-ey0-f169.google.com) (209.85.215.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2012 07:04:38 +0000 Received: by eaaf11 with SMTP id f11so90664eaa.0 for ; Wed, 08 Aug 2012 00:04:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=ayHKgGmKhw3WsBMRldI3BvIyysCSHyLuHfGhCE6beRs=; b=g4BTyi0LhpsUsqzT/GCH7pIPqOCDJtFdJESTb7Fhx8PP+8x0+9RNdb85PWKBdn8Zuf l/vEXOBu74n6Z+Q9d4Wb+YQ5ZG2B59phhHF3dJy4ey7pUGNNpt6czDHYpRw18FaQPkOE ZHx539KLK4AdOkc5SxElcKITr1pHf7vjBiMF6zjb5ZSOHYXer0Cp7quEnlXHEDKiU5X/ /5+lh1ECRMgwFZa+R1cF1rr8BGx7p4hV4EDwsgDPZEep3AKwNorqLp+C0o9dD/sa0BTA 5hjfN3lxHUpKxJ3Jk4uJOnSik/C2OmbaXEafYsri4sY1QvdCzhxtt9lKpwG9PZrj+0R7 OtBA== Received: by 10.14.175.130 with SMTP id z2mr21069722eel.0.1344409456630; Wed, 08 Aug 2012 00:04:16 -0700 (PDT) Received: from [10.39.0.31] ([87.252.227.101]) by mx.google.com with ESMTPS id 45sm15009639eed.17.2012.08.08.00.04.14 (version=SSLv3 cipher=OTHER); Wed, 08 Aug 2012 00:04:15 -0700 (PDT) Message-ID: <50220F6D.7000007@gmail.com> Date: Wed, 08 Aug 2012 10:04:13 +0300 From: Sergey Beryozkin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Justin Robbins CC: users@cxf.apache.org Subject: Re: setting "ignore.response.writers" in ResponseHandler References: <5020FC64.9040103@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi On 07/08/12 19:59, Justin Robbins wrote: > Sergey, > > Many thanks for your reply. > > I think I am confused. I see the docs refer to > "ignore.response.writers" but I'm finding "ignore.message.writers" in > JAXRSUtils. > > Can you please explain the difference between these two properties. > > Thanks from a fan of CXF! I've fixed the documentation typo [1], sorry about it :-) many thanks Sergey [1] https://cwiki.apache.org/confluence/display/CXF20DOC/JAX-RS+Filters > > On Tue, Aug 7, 2012 at 7:30 AM, Sergey Beryozkin > wrote: > > Hi > > On 07/08/12 00:30, Justin Robbins wrote: > > Hello, > > I am using a custom ResponseHandler. > > The documentation states you can ignore the MessageBodyWriter > (Jackson in > my case) by setting the following property: > message.getExchange().put("__ignore.response.writers", true); > > I am setting the property but Jackson is still handling the > serialization. > Is there something else I should be aware of? > > I can confirm my ResponseHandler is getting called and I am > returning a > null from this method. > > http://cxf.apache.org/docs/__jax-rs-filters.html#JAX-__RSFilters-__IgnoringJAXRSMessageBodyWriter__s > > > > Works OK for me, I updated the test response handler and could see > that this property was taking effect. > Do you have a non null Response entity and set this property ? In > this case the provider will write directly to the stream. > > Please provide a bit more info > > Cheers, Sergey > > > I am using CXF v2.5.2. > > Many thanks! > > Justin > > > > > > > -- > Regards, > Justin Robbins > 973.479.0448 > JustinHRobbins@gmail.com >