Great, but it somehow only works for the <target> host property, if I apply it to the port property it just failed with following error:
12:08:25,762 ERROR HotDeploymentThread:90 - line 123: cvc-datatype-valid.1.2.1: '$p{string1}' is not a valid value for 'integer'.
and here is my config:
<spring:beans ...>
<spring:property name="placeholderPrefix" value="$p{" />
<spring:property name="placeholderSuffix" value="}" />
<spring:bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<spring:property name="properties">
<spring:value>string1=5679</spring:value>
</spring:property>
</spring:bean>
<router>
<serviceProxy ...>
...
<target port="$p{string1}" host="abc.net"/>
</serviceProxy>
</router>
</spring:beans>