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 DA434DF5F for ; Fri, 21 Sep 2012 18:28:29 +0000 (UTC) Received: (qmail 85203 invoked by uid 500); 21 Sep 2012 18:28:29 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 85114 invoked by uid 500); 21 Sep 2012 18:28:29 -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 85103 invoked by uid 99); 21 Sep 2012 18:28:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2012 18:28:28 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.85.173.253] (HELO server.dankulp.com) (64.85.173.253) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2012 18:28:21 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id C214F1809EB; Fri, 21 Sep 2012 14:28:00 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter-dev@cxf.apache.org.NHqQzU62zF Received: from macbook.house.dankulp.com (c-24-91-72-253.hsd1.ma.comcast.net [24.91.72.253]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTPSA id 3EAC61809D5 for ; Fri, 21 Sep 2012 14:28:00 -0400 (EDT) From: Daniel Kulp Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Async methods for JAX-RS WebClient Message-Id: <231E928F-4389-4694-9584-8FB5EE67EA1F@apache.org> Date: Fri, 21 Sep 2012 14:27:59 -0400 To: "dev@cxf.apache.org" Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) X-Mailer: Apple Mail (2.1498) X-Old-Spam-Status: No, score=-102.9 required=3.0 tests=ALL_TRUSTED,BAYES_00, SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.3.2 Sergey, (and others) I just committed some initial support for some async methods to the = WebClient. Can you take a look at that change and make sure it all = makes sense? I only have a "get" method in there right now, but it = should be fairly trivial now to add the others that would map to the new = doInvokeAsync method. Just want to make sure it looks ok first. I'm a little concerned about the "state" objects in the WebClient. I = assume WebClients aren't supposed to be thread safe (that's OK). = However, can a WebClient be used to make multiple calls? What would = you expect in the case where a WebClient makes multiple async calls? --=20 Daniel Kulp dkulp@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com