Atomikos Forum

3.3.1 Migration NameAlreadyBoundException in unit tests

Hello, I am trying to move from 3.2 to 3.3 and I have switched to the AtomikosDataSourceBean. The 3.3 version is working great when I run each of my unit tests individually, and there are no more shutdown errors.  When I try to run multiple tests, I am getting: NameAlreadyBoundException: resource with name 'myDBResource' already registered

I guess that either the tests are being run concurrently or the resource is not being destroyed between tests.  I did not have this issue in 3.2 using the SimpleDatasourceBean.
depstei2 Send private email
Monday, June 09, 2008
 
 
Please make sure the close the DataSource after each test.
Guy Pardon Send private email
Monday, June 09, 2008
 
 
the close -> to close (sorry)
Guy Pardon Send private email
Monday, June 09, 2008
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics