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

Clean up the problems in async code.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.7.0
    • 4.0
    • ejb31
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: