Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-9450

Throwing exception annotated with @ApplicationException from bean with Bean-Managed transaction is causing exception to be wrapped in EJBException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 6.1.0
    • EJB
    • None
    • Hide

      Call bean method which will throw exception annotated with @ApplicationException (not necessarily), while bean is using Bean-managed transaction - annotated @TransactionManagement(TransactionManagementType.BEAN). Bean type is Stateless Session bean.

      Show
      Call bean method which will throw exception annotated with @ApplicationException (not necessarily), while bean is using Bean-managed transaction - annotated @TransactionManagement(TransactionManagementType.BEAN). Bean type is Stateless Session bean.

    Description

      If exception (even if annotated with @ApplicationException) is thrown from stateless session bean with Bean-Managed transaction (@TransactionManagement(TransactionManagementType.BEAN)) then this exception is wrapped in EJBException. This does not happened in JBoss 6.0.0.Final and it is also not happening for beans with Container-managed transaction.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-cdewolf Carlo de Wolf
              goldm_jira Martin Gold (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: