Hi,
you need to define a PropertyPlaceholderConfigurer to be able to use
system variable.
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
/>
In an OSGi blueprint environment you can use ConfigAdmin
<cm:property-placeholder id="property-placeholder" persistent-id="your-id">
<cm:default-properties>
<cm:property name="variable" value="value"/>
</cm:default-properties>
</cm:property-placeholder>
Regards
JB
On 10/19/2010 02:25 PM, the_biswa wrote:
On the same line I wanted to know one thing.
I've defined some variables in<servicemixhome>/etc/system.properties file
I want to dynamically load the locationURI value of<http:consumer .../>
endpoint from the aforesaid system.properties.
below is my http:consumer definition
<http:consumer service="b:httpConsumerGateway"
endpoint="endpoint"
locationURI="${location}"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
targetService="b:srsGateway"/>
but while deploying the SA it is throwing MalformedURLException. where am I
going wrong. What is the process to do that?