I want to run in one test method two threads. Each one in their own transaction. EJB2 service is used. In both threads change the same entity state. Check result. How can I do it? I use arquillian for integration tests to make sure EJB services work OK.
How to inject services or pass transaction in the threads?