This content has been marked as final.
Show 2 replies
-
1. Re: Problems with database connection
elvis00 Jul 25, 2007 9:07 AM (in response to chitão)Hi,
I have exactly the same problem.
What is JBoss doing when I uncomment the <valid-connection-checker-class-name>?
I think JBoss is checking the connection before handing the connection to the application with the sql I configure also.
If the SQL isn't succeddful I expect a exeption in server.log, right?
Cheers
Markus -
2. Re: Problems with database connection
peterj Jul 25, 2007 12:02 PM (in response to chitão)For Oracle, it is using the pingDatabase method to check if the database is available. You could see either a warning or a SQL exception in the log file if the ping fails. Look at the following files in the source:
connector/src/main/org/jboss/resource/adapter/jdbc/vendor/OracleValidConnectionChecker.java
connector/src/main/org/jboss/resource/adapter/jdbc/BaseWrapperManagedConnection.java (the checkValid method)