2 Replies Latest reply on Mar 3, 2015 9:30 AM by Aslak Knutsen

    No transaction

    Nicklas Karlsson Master

      I'm testing persistence and I'm seeing some strange behavior:


      I inject a stateful bean into the test and call it's methods but no insert statements are being generated. Tried adding the arquillian @Transactional annotation but that didn't help. If I add em.flush() after the merge I get a "no transaction in progress" (which is consistent with the fact that no merge is being performed). If i outside the test trying starting a UserTransaction and using em.joinTransaction, I get a "transaction already active". Really strange. I'm using a WF 9.