Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3801

Wrong Transaction behaviour for EJBs if JTS is enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 11.0.0.Final
    • 8.1.0.Final
    • EJB
    • None
    • Hide

      A reproducer project is attached.

      • use 'standalone.sh -c standalone-full.xml
      • run the enableJTS : jboss-cli.sh -c --file=enableJTS.cli
      • deploy target/ejb30-jpa.jar
      • run
      • java -cp JB/bin/client/jboss-client.jar:target/test-classes:target/classes org.jboss.wfink.ejb30.StatefulRemoveMain
      • java -cp JB/bin/client/jboss-client.jar:target/test-classes:target/classes org.jboss.wfink.ejb30.StatelessMain
      Show
      A reproducer project is attached. use 'standalone.sh -c standalone-full.xml run the enableJTS : jboss-cli.sh -c --file=enableJTS.cli deploy target/ejb30-jpa.jar run java -cp JB/bin/client/jboss-client.jar:target/test-classes:target/classes org.jboss.wfink.ejb30.StatefulRemoveMain java -cp JB/bin/client/jboss-client.jar:target/test-classes:target/classes org.jboss.wfink.ejb30.StatelessMain

    Description

      If JTS is enabled the invocation of EJB's might show a arjuna warning for each method invocation:
      WARN [com.arjuna.ats.jts] (RequestProcessor-5) ARJUNA022261: ServerTopLevelAction detected that the transaction was inactive
      This is only the case if other resources are involved, i.e. a DB via JPA.
      If a simple bean is used (like ejb-remote quickstart) this warning is not shown.

      It looks like the transaction is local commited but in case of a SFSB @Remove method the result is a " WFLYEE0006: Failed to destroy component instance Instance of SFTestBean" and the lifecycle method @PreDestroy is not invoked.

      Attachments

        1. 456a624-withDestroy.log
          662 kB
        2. 8d49872-error.log
          676 kB
        3. enableJTS.cli
          0.7 kB
        4. reproducer.zip
          29 kB
        5. server.log
          48 kB

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              rhn-support-wfink Wolf-Dieter Fink
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: