You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "dr.jeff" <jl...@systechnologies.com> on 2007/06/07 04:00:34 UTC
setting endpoint parameters
How do I set endpoint parameters, using Spring?
I tried the following wild guess without success:
<!-- file endpoint -->
<endpoint id="poller" uri="file:///c:/tmp/test">
<property name="consumerProperties">
<props>
<prop key="initialDelay">15000</prop>
<prop key="delay">5000</prop>
</props>
</property>
</endpoint>
--
View this message in context: http://www.nabble.com/setting-endpoint-parameters-tf3881403s22882.html#a11000674
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: setting endpoint parameters
Posted by James Strachan <ja...@gmail.com>.
On 6/7/07, dr.jeff <jl...@systechnologies.com> wrote:
>
> How do I set endpoint parameters, using Spring?
> I tried the following wild guess without success:
> <!-- file endpoint -->
> <endpoint id="poller" uri="file:///c:/tmp/test">
> <property name="consumerProperties">
> <props>
> <prop key="initialDelay">15000</prop>
> <prop key="delay">5000</prop>
> </props>
> </property>
> </endpoint>
I think the main issue is that the <property> element has to be in the
spring namespace. I guess we could copy the various spring element
names (property, bean, list, map, props etc) into the Camel namespace,
but its probably cleaner to keep the camel & spring namespaces
separate.
--
James
-------
http://macstrac.blogspot.com/