Skip to content

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

@spring-projects-issues

Description

@spring-projects-issues

Sven Bovens (Migrated from LDAP-338) said:

Currently only explicit configuration for integer properties seems to be possible in the spring ldap xml config:

  <ldap:pooling 
    test-on-borrow="true"
    test-while-idle="true"
    eviction-run-interval-millis="180000"
    min-evictable-time-millis="60000"
 />

We require to specify above integers in an external property file, but currently below configuration doesn't seem possible.

  <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}"
  />

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions