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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 6.1.0
    • Fix Version/s: None
    • Component/s: EJB
    • Labels:
      None
    • Environment:

      Windows XP OS, JDK 1.6.0_15

    • Steps to Reproduce:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  wolfc Carlo de Wolf
                  Reporter:
                  goldm Martin Gold
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: