I am using spring with hazelcast and the PropertyPlaceholderConfigurer of spring for inserting properties into the spring-xml which change by different environment.
e.g.:
i'd like to change the max-idle-seconds of a map (should be different for every environment). But this won't work because it doesn't recognize it as an integer:<hz:network port="${hazelcast.port}" port-auto-increment="true">
I get this exception when i try to run it:<hz:map name="default" backup-count="2" max-size="0"
max-idle-seconds="${hazelcast.maxidleseconds}" />
Maybe it's not possible for the PropertyPlaceholderConfigurer to insert an integer. Maybe it's a problem related to the hazelcast.xsd.Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '${hazelcast.maxidleseconds}' is not a valid value for 'integer'.
Maybe somebody here know a solution?
tia && regards noircc


Reply With Quote
