Menu

#22 Verify DB Connection for Logging before Migration Proceeds

open
nobody
5
2012-12-13
2012-04-10
Anonymous
No

If the database connection information is invalid or if the database connection fails, the migration proceeds even though the logging is failing.

A simple query could be added to the doInitLog method of the MigrationLogJdbc class. This may need to be injected so the class wouldn't become dependent on a certain database type. Or potentially there is another method that could be used to ascertain the connection is valid.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.