setting endpoint parameters

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

setting endpoint parameters

dr.jeff
How do I set endpoint parameters, using Spring?
I tried the following wild guess without success:
   
    <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>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: setting endpoint parameters

jstrachan
On 6/7/07, dr.jeff <[hidden email]> 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/
Loading...