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'.
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'.