Atomikos Forum |
|
If I use the AtomikosDataSourceBean in the following sequence its works fine:
1. Start the DB 2. Create AtomikosDataSourceBean (with a proper testQuery) 3. Connection to DB is sucessfull 4. Stop the DB 5. Connection to DB is lost 6. Start the DB again 7. Same connection pool is able to connect to DB Which means after creating the AtomikosDataSource bean with a proper testQuery if the DB restarts or if there is a network problem then I need not worry about creating it again. It just works. But if the DB is down to start with then it fails. Here is the sequence: 1. Stop the DB 2. Create AtomikosDataSourceBean (with the testQuery) 3. Connection to DB will fail 4. Start the DB 5. Connection to DB will still fail! Where as if I use DBCP then it work fine in both cases. Is it designed to work this way for some reason or is it a bug or am I missing something? |