We are trying to convert our WebApp to complete configuration using a JndiPropertySource(for all parameters that are environment dependent).
Has anyone a example usage of it (maybe even for tomcat)?
We already get the DataSource via JNDI, so we want the HibernateDialect to be configured right besides it…
In your
spring-context.xmlyou need only the placeholder tag:After that you insert an environment tag in Tomcats main
context.xml, it reads it:Now you can use the code
${hibernate.dialect}in the sprinng config file.