whiteeagl
asked on
OracleConnectionCacheManager - Event Listener
Hi,
I have an Oracle 10g database and we are developping a 3-tier application. I am currently working on the database connection management (Connection Pooling) and would like to notify client applications when there is a problem with connecting to the database and then notify when connection is available again later.
At first, I used OracleDataSource and OraclePooledConnection, but now it seems that OracleConnectionCacheManag er is much more useful and "powerful". Now that this is implemented, how can I add an event listener to the caching object so that when physical connection to DB goes down, my app could send a notification?
Thanks
I have an Oracle 10g database and we are developping a 3-tier application. I am currently working on the database connection management (Connection Pooling) and would like to notify client applications when there is a problem with connecting to the database and then notify when connection is available again later.
At first, I used OracleDataSource and OraclePooledConnection, but now it seems that OracleConnectionCacheManag
Thanks
ASKER
I'm still looking for a good solution concerning this connection validation problem.
Is there somthing like validationQuery for OracleDataSource or ConnectionCacheManager ?
I know that I could simply query the DB every time the users need a connection, but I guess it is just a workaround...
Is there somthing like validationQuery for OracleDataSource or ConnectionCacheManager ?
I know that I could simply query the DB every time the users need a connection, but I guess it is just a workaround...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
ASKER