cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-7057) CXF JAXRSClientFactoryBean proxy async support
Date Fri, 30 Sep 2016 16:22:20 GMT


Sergey Beryozkin commented on CXF-7057:

Hi Neal, thanks for this effort.

FYI, I'll be travelling all of the next week, and I suspect the internet connections may be
not ideal there, so I'll try to investigate later. However, perhaps you can check yourself
what can be done in meantime ?
There must be a standard Java way to get from a given proxy object to the underlying invocation
handler, irrespectively of how deeply proxified a given handle is. Can you try, directly in
your code, to  apply a sequence of Proxy.getInvocationHandler(), etc ? Or may be check some
utility code in Dubbott which can get to it ?

Thanks, Sergey

> CXF JAXRSClientFactoryBean proxy async support
> ----------------------------------------------
>                 Key: CXF-7057
>                 URL:
>             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

View raw message