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 962BDC143 for ; Mon, 5 Aug 2013 20:17:28 +0000 (UTC) Received: (qmail 89843 invoked by uid 500); 5 Aug 2013 20:17:27 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 89773 invoked by uid 500); 5 Aug 2013 20:17:27 -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 89765 invoked by uid 99); 5 Aug 2013 20:17:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Aug 2013 20:17:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: encountered temporary error during SPF processing of domain of jjakub83@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Aug 2013 20:17:22 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1V6RCt-000310-El for users@cxf.apache.org; Mon, 05 Aug 2013 13:16:43 -0700 Date: Mon, 5 Aug 2013 13:16:43 -0700 (PDT) From: camel To: users@cxf.apache.org Message-ID: <1375733803435-5731968.post@n5.nabble.com> In-Reply-To: <1375733578757-5731958.post@n5.nabble.com> References: <1375733578757-5731958.post@n5.nabble.com> Subject: Re: how to create HttpEntityEnclosingRequest with HttpAsyncContentProducer entity ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org sorry, I am mistaken if (entity instanceof HttpAsyncContentProducer) { this.producer = (HttpAsyncContentProducer) entity; --> this is not executed } else { this.producer = new EntityAsyncContentProducer(entity); ---> this is executed } /** * Basic implementation of {@link HttpAsyncContentProducer} that relies on * inefficient and potentially blocking I/O operation redirection through * {@link Channels#newChannel(java.io.InputStream)}. * * @since 4.2 */ @NotThreadSafe public class EntityAsyncContentProducer implements HttpAsyncContentProducer { ant possibly this is why my code isn't truly asynchronous, How should I fix it ? -- View this message in context: http://cxf.547215.n5.nabble.com/how-to-create-HttpEntityEnclosingRequest-with-HttpAsyncContentProducer-entity-tp5731958p5731968.html Sent from the cxf-user mailing list archive at Nabble.com.