cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neal Hu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7057) CXF JAXRSClientFactoryBean proxy async support
Date Thu, 29 Sep 2016 16:24:21 GMT

    [ https://issues.apache.org/jira/browse/CXF-7057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15533240#comment-15533240
] 

Neal Hu commented on CXF-7057:
------------------------------

Hi ,
The proxy object which in the getConfig method called client(com.alibaba.dubbo.common.bytecode.proxy0@1b32cd16),
and client instanceof InvocationHandlerAware returns *false*. The proxy's class is generated
dynamically. I will try to upload project to github, the process may a bit complex, you need
build the alibaba Dubbo and my cxfrest protocol integration code and install to your private
maven repository, then debug in a junit test. 

> 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.7
>         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<T> 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 is dynamicly generated by the clientfactory.create. Thanks.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message