Intro : My app contains 2 datasource, i used tomcat context.xml to configure them and it's working fine, but now i need to launch the app as a spring-boot application, one of datasource which is declared in hibernate.cfg.xml file doesn't seem to be loaded properly
What i tried: i created a bean for the second data source which is in hibernat.cfg.xml file (same as i did for the first datasource) in a class annotated @configuration but i got this error: Error parsing JNDI name [java:/comp/env/jdbc/mySecondDB]
i tried also to modify the jndi value to : java:comp/env/jdbc/mySecondDB but it's not working
how i can load this 2nd datasource from the hibernate.cfg.xml file ?