Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1558

Clean up the problems in async code.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.7.0
    • Fix Version/s: 4.0
    • Component/s: ejb31
    • Labels:
      None

      Description

      There are some requirements on the exceptions when executing async method:

      1, Unchecked exception must be wrapped with EJBExcpetion before being wrraped with ExecutionException and throwing out.
      2, All checked exception should be wrapped with ExecutionException before throwing out.

      the client code could get the root exception with ExecutionException.getCause();

        Attachments

          Activity

            People

            • Assignee:
              genspring Lin Quan Jiang
              Reporter:
              genspring Lin Quan Jiang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: