Link to home
Start Free TrialLog in
Avatar of whiteeagl
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 OracleConnectionCacheManager 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
Avatar of whiteeagl
whiteeagl

ASKER

Is there any good/better way to check if the connection still is working?
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...
ASKER CERTIFIED SOLUTION
Avatar of mariec
mariec
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks