Atomikos Forum

AtomikosDataSourceBean connection issue

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?
Sri Harsha Honsogae Send private email
Thursday, November 27, 2008
 
 
Seems strange, not the intention IMO.

What error do you get, and what is the tm.out in DEBUG mode?

Guy
Guy Pardon Send private email
Thursday, November 27, 2008
 
 
I found the cause - a bug alas. Will be fixed by 3.4.4
Guy Pardon Send private email
Thursday, November 27, 2008
 
 
Thanks Guy.
Sri Harsha Honsogae Send private email
Friday, November 28, 2008
 
 

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

Other recent topics Other recent topics