I want to concatenate a string dynamically in springs.The string is
<bean id="mBeanExporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
<property name="beans">
<map>
<entry key="bean:name=HealthChk" value-ref="#{'HealthChk-'.concat(_LOCALHOST_)}"/>
</map>
</property>
<property name="server" ref="mBeanServer"/>
</bean>
I am passing _LOCALHOST_
value from script which should replace this with the IPAddress.Can anyone help me out how the concat can be done?value-ref="#{'HealthChk-'.concat(_LOCALHOST_
)} needs to be corrected.
Thanks