<div dir="ltr"><div dir="ltr"><div>Hello list,</div><div><br></div><div>We're using mp 3.9 and we tried to centralize our database connections using datasources, however, it seems to be impossible when running midPoint in Springboot's embedded tomcat server.</div><div><br></div><div>It seems embedded Tomcat does not accept server.xml or context.xml files, and does not create a JNDI context with default settings. <br></div><div>However, midPoint's DataSourceFactory and the DatabaseTableConnector only look for dataSource from JNDI, and not Springboot's defined datasource beans.</div><div><br></div><div>It seems that it's possible to declare JNDI context from embedded tomcat, but only programatically.</div><div>I guess either midPoint's DataSourceFactory and DatabaseTableConnector need to evolve to support Spring Datasource beans, or add code to enable the embedded server JNDI context and load jndi datasource declarations from a file.</div><div><br></div><div>Is there anything else I'm missing?<br></div></div></div>