Class VerifyDatabaseConnectionBean
java.lang.Object
org.frankframework.lifecycle.VerifyDatabaseConnectionBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
public class VerifyDatabaseConnectionBean
extends Object
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Verifies if a (valid) connection can be made.
This class uses JDBC4 isValid which may not always work properly.
As an additional step it not only verifies the socket is open but also usable.
In addition it verifies if the TransactionManager can see/use the database and if the connections are using a TX isolation level
- Author:
- Niels Meijer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetRequiresDatabase(boolean requiresDatabase) Defaults to propertyjdbc.required.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
-
Constructor Details
-
VerifyDatabaseConnectionBean
public VerifyDatabaseConnectionBean()
-
-
Method Details
-
afterPropertiesSet
-
setRequiresDatabase
public void setRequiresDatabase(boolean requiresDatabase) Defaults to propertyjdbc.required.
-