Hello
I'm trying to create Hazelcast client instance via Spring but getting error using property placeholder for client network attributes (hz:client hz:network) with the following configuration:
<hz:client id="hazelcastClientInstance" >
<hz:group name="${hazelcastClient.groupName}" password="${hazelcastClient.groupPassword}" />
<hz:network connection-attempt-limit="${hazelcastClient.connectionAttemptLimit}"
connection-attempt-period="${hazelcastClient.connectionAttemptPeriod}"
connection-timeout="${hazelcastClient.connectionTimeout}"
redo-operation="${hazelcastClient.networkRedoOperation}"
smart-routing="${hazelcastClient.networkSmartRouting}" >
<hz:member>${hazelcastCliet.clusterMember.0}</hz:member>
<hz:member>${hazelcastClient.clusterMember.1}</hz:member>
</hz:network>
</hz:client>
Error is:
Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '${hazelcastClient.connectionAttemptLimit}' is not a valid value for 'integer'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
...
In schema, the data type of these attributes are integer so unless placeholder resolution happens BEFORE "hz" namespace is processed, the above error results.
Is there any way to get around this or am I doing something wrong?
Any suggestions/feedback are greatly appreciated.
Best regards.