Hi Rex,
to my knowledge (substantiated with a quick code inspection) the placeholders
in Aries today support no operators or arithmetic like that. But please do
raise an Improvement JIRA for the future :)
Regards,
Valentin
On 12 Aug 2011, at 09:53, Rex Wang wrote:
> Hi devs,
>
> I am wondering if Aries blueprint-cm support such scenario:
>
> <cm:property-placeholder id="property-placeholder" persistent-id="o.a.b.com"
> placeholder-prefix="${" placeholder-suffix="}">
> <cm:default-properties>
> <cm:property name="port" value="12345"/>
> <cm:property name="offset" value="10"/>
> </cm:default-properties>
> </cm:property-placeholder>
>
> <xxx:conn name="loc" uri="http://localhost:${port+offset}"/>
>
>
> I have a test, but seems the ${port+offset} can not be replaced with value
> "12355".
>
> Any ideas?
>
>
> --
> Lei Wang (Rex)
> rwonly AT apache.org