Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9B53A200B91 for ; Wed, 14 Sep 2016 11:29:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9A2F6160ABA; Wed, 14 Sep 2016 09:29:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E41AC160AD5 for ; Wed, 14 Sep 2016 11:29:22 +0200 (CEST) Received: (qmail 27735 invoked by uid 500); 14 Sep 2016 09:29:21 -0000 Mailing-List: contact issues-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 issues@cxf.apache.org Received: (qmail 27338 invoked by uid 99); 14 Sep 2016 09:29:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2016 09:29:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 91A4B2C1B83 for ; Wed, 14 Sep 2016 09:29:21 +0000 (UTC) Date: Wed, 14 Sep 2016 09:29:21 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-7057) CXF JAXRSClientFactoryBean proxy async support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 14 Sep 2016 09:29:23 -0000 [ https://issues.apache.org/jira/browse/CXF-7057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15489939#comment-15489939 ] Sergey Beryozkin commented on CXF-7057: --------------------------------------- Hi Neal, so this is a CXF dev question, start from here http://sberyozkin.blogspot.ie/2016/06/asynchronous-jax-rs-proxies-in-cxf.html give this feature a try and comment here please. Possible enhancement is to have dedicated async methods returning a Future or CompletableStage can be generated for WADL-first or Swagger-first cases. > CXF JAXRSClientFactoryBean proxy async support > ---------------------------------------------- > > Key: CXF-7057 > URL: https://issues.apache.org/jira/browse/CXF-7057 > Project: CXF > Issue Type: Wish > Components: JAX-RS > Affects Versions: 3.1.6 > Environment: Linux Mac > Reporter: Neal Hu > Fix For: 3.1.8 > > > Say we have resource interface org.apache.cxf.Resource, and its impl org.apache.cxf.ResourceImpl, we can create client proxy via JAXRSClientFactoryBean as below; > {code:java} > Class type = org.apache.cxf.Resource.class; > JAXRSClientFactoryBean bean = new JAXRSClientFactoryBean(); > bean.setAddress(baseAddress); > bean.setServiceClass(type); > bean.setProviders(providers); > bean.setFeatures(features); > bean.setThreadSafe(true); > T proxy = bean.create(type); > {code} > Then invoke the method via proxy.method1. > As we know the spec client api can invoke via async mode, my question is if the dynamic proxy mode support async mode. > We are developing micro service framework which based on CXF RS, and the comsumer's invoker a dynamic generated by the clientfactory.create. Thanks. -- This message was sent by Atlassian JIRA (v6.3.4#6332)