Hi guys ! I have a Maven application which runs with Oracle database and Weblogic as a server. My connection to database is realized by a datasource created from Weblogic(JNDI). As a pom.xml dependencies i have flyway-core 8.0.0 and flyway-database-oracle 9.21.2 . How can i realize a Flyway configuration with Oracle and JNDI connection with database ?
Comments
3 comments
-
Hi Mad_max,
Not natively I believe, the only instance I've seen of this is where Springboot is being used which acts a consolidating intermediary.
Was your goal to explicitly use the same connection as the one that's already established or just to reuse the connection details? -
I use Springboot to config Flyway (app.properties) but when I start application, Flyway does not seem to start.
How can I use Springboot to act as a consolidating intermediary ?
-
If flyway doesn't initiate, you might have a different problem to what we're discussing here?
I was thinking you could use Spring's PropertyPlaceholderAutoConfiguration to pass your existing JNDI connection to flyway.
Add comment
Please sign in to leave a comment.