jeudi 14 mai 2015

Load proiperty file as resource to Tomcat and read as JNDI resource from Spring

My problem is as follows:

I need to load a property file (like: $TOMCAT_DIR/conf/cassandra.db.properties) as resource into tomcat context.xml.

Then I need to read those properties from spring context using JNDI (with SPEL for example) xml-less.

The main issue is that in 80% of posts I see only reading DataSource from a tomcat JNDI context, is there a way to do it with plain property file, and then read in Spring?

Aucun commentaire:

Enregistrer un commentaire