JBoss Community

Re: Session and thread safety

created by Marcin Gałązka in jBPM - View the full discussion

New version (workflow-test-case-v2.tar.gz) attached. Use 'mvn -Dgroups=spring clean test' to run Spring based test or 'mvn -Dgroups=simple clean test' to run non-Spring based test. Do not run both tests at once ('mvn clean test') - it looks that due to the some background thread spawned by Bitronix TM a data source isn't unbinded from JNDI fast enough and you will get 'java.lang.IllegalArgumentException: resource with uniqueName 'jdbc/jbpm-ds' has already been registered'. I did not investigate the matter further, it is irrelevant here.

 

I've also fixed parallel tests (mis)configuration.

 

Every tests (Spring, non-Spring) contains two methods:

- testOwnTransaction - should pass.

- testJoinedTransactions - should fail.

Reply to this message by going to Community

Start a new discussion in jBPM at Community