rwinch / spring-ldap

Apache License 2.0
0 stars 0 forks source link

LDAP-338: support property placeholders for (integer) properties in ldap xml configuration #83

Open rwinch opened 9 years ago

rwinch commented 9 years ago

Original Reporter: fjoerie Environment: Not Specified Version: 2.0.3 Migrated From: https://jira.spring.io//browse/LDAP-338 Currently only explicit configuration for integer properties seems to be possible in the spring ldap xml config: {code:xml} <ldap:pooling test-on-borrow="true" test-while-idle="true" eviction-run-interval-millis="180000" min-evictable-time-millis="60000" /> {code}

We require to specify above integers in an external property file, but currently below configuration doesn't seem possible. {code:xml} <ldap:pooling test-on-borrow="true" test-while-idle="true" eviction-run-interval-millis="${ldap.eviction.schedule}" min-evictable-time-millis="${ldap.eviction.timeout.idle}" /> {code}

Following exception is thrown: Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 35 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 35; columnNumber: 5; cvc-datatype-valid.1.2.1: '${ldap.eviction.schedule}' is not a valid value for 'integer'.