Hi
You need to add some spring property placeholder in the XML file to
let it trigger the ${env:xxx}.
On Wed, Apr 4, 2012 at 1:15 AM, m0thra <[email protected]> wrote:
> I have been struggling trying to get this to work using various syntax.
>
> <bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
> <property name="connectionFactory">
> <bean
> class="org.apache.activemq.ActiveMQConnectionFactory">
> <property name="brokerURL"
> value="vm://apiServiceBroker" />
> </bean>
> </property>
> </bean>
>
> <amq:broker brokerName="apiServiceBroker"
> dataDirectory="${env:AMQ_DATA_DIR}">
> <amq:transportConnectors>
> <amq:transportConnector uri="tcp://localhost:61616"/>
> </amq:transportConnectors>
> </amq:broker>
>
> Is using a replacement property going to work for the broker dataDirectory
> in Camel Spring DSL? It is getting interpreted as a literal
>
>
> 16:11:29,945 INFO [KahaStore] Kaha Store using data directory
> ${env:AMQ_DATA_DIR}/apiServiceBroker/tmp_storage
>
> Thanks for any help that can be supplied.
>
> MJ
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/using-property-for-broker-dataDirectory-tp5616593p5616593.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/