You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Lior Asher (JIRA)" <ji...@apache.org> on 2013/11/05 08:47:19 UTC
[jira] [Created] (CXF-5376) @UseAsyncMethod doesn't work with jdk
dynamic proxy
Lior Asher created CXF-5376:
-------------------------------
Summary: @UseAsyncMethod doesn't work with jdk dynamic proxy
Key: CXF-5376
URL: https://issues.apache.org/jira/browse/CXF-5376
Project: CXF
Issue Type: Bug
Components: Core
Affects Versions: 2.6.10
Environment: Windows, jdk 7.20
Reporter: Lior Asher
when using a dynamic proxy as the implementor bean in cxf ws, the <Operation>Async method is never invoked.
i believe that the problem is originated from the way Proxy.newProxyInstance() works.
it seems that the Proxy object methods do not carry any of the original annotations from the interface.
this in turn causes AbstractJAXWSMethodInvoker:adjustMethodAndParams not to find the m.getAnnotation(UseAsyncMethod.class) and the outcome should is the synchronous invocation of the web service method.
a possible solution might be that the target class should first be inspected here for isProxyClass .
--
This message was sent by Atlassian JIRA
(v6.1#6144)