Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5376

@UseAsyncMethod doesn't work with jdk dynamic proxy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.10
    • Fix Version/s: 3.1.4
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Windows, jdk 7.20

    • Estimated Complexity:
      Unknown

      Description

      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 .

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                LiorA Lior Asher
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: