Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2238

@TransactionAttribute(TransactionAttributeType.BEAN) Does not work in SLSB

XMLWordPrintable

    • Hide

      Create an SLSB with a single method that force a transaction timeout.
      Put the @TransactionAttribute(TransactionAttributeType.BEAN) annotation in class scope.
      Use restful to call that method.

      You will see a transaction timeout exception referencing CMT management. This is incorrect because CMT should not be used in this case

      Show
      Create an SLSB with a single method that force a transaction timeout. Put the @TransactionAttribute(TransactionAttributeType.BEAN) annotation in class scope. Use restful to call that method. You will see a transaction timeout exception referencing CMT management. This is incorrect because CMT should not be used in this case
    • Workaround Exists
    • Hide

      As a workaround, for now, try setting (in addition to the BEAN tx management type, that you already have):

      @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)

      Show
      As a workaround, for now, try setting (in addition to the BEAN tx management type, that you already have): @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
    • tx2:0.0.2

      1. test-bmt.tgz
        3 kB
        Israel E. Bethencourt

            jaikiran Jaikiran Pai (Inactive)
            fidox_jira Israel E. Bethencourt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: