You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jwickard <jw...@gmail.com> on 2008/09/25 20:41:21 UTC
file:poller >> camel su
I have two xbean configurations:
<file:poller service="aries:file"
endpoint="poller"
file="file:/home/jwickard/ariesmailroom/poller"
archive="file:/home/jwickard/ariesmailroom/poller/imported"
recursive="false"
targetService="aries:recordSplitter"/>
previously this was sent to an eip xpath splitter noted by the target
service. What I want to do is convert over from using eip to camel & use
camels xpath splitter.
Here's my current camel context def:
<camelContext id="camel"
xmlns="http://activemq.apache.org/camel/schema/spring">
<route>
<from uri="aries:file"/>
<splitter>
<xpath>/CiResponse/Items/HardGoodItem</xpath>
<to uri="aries:dbwriter"/>
</splitter>
</route>
</camelContext>
The part I'm stuck on, is what to use for the targetService in the
filepoller su declaration to send the message from the file poller to camel
to start it's processing
Any pointers would be great,
Thanks.
--
View this message in context: http://www.nabble.com/file%3Apoller-%3E%3E-camel-su-tp19675824p19675824.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: file:poller >> camel su
Posted by Joel Wickard <jo...@bigideas.com>.
I think I may have sort of figured it out. Am I supposed to configure
the filepoller to send the file / message to a JMS topic, & then
configure camel to listen to said topic & it automatically pics up
things configured for "from" ?
On Thu, 2008-09-25 at 11:41 -0700, jwickard wrote:
> I have two xbean configurations:
>
> <file:poller service="aries:file"
> endpoint="poller"
> file="file:/home/jwickard/ariesmailroom/poller"
> archive="file:/home/jwickard/ariesmailroom/poller/imported"
> recursive="false"
> targetService="aries:recordSplitter"/>
>
> previously this was sent to an eip xpath splitter noted by the target
> service. What I want to do is convert over from using eip to camel & use
> camels xpath splitter.
>
> Here's my current camel context def:
>
> <camelContext id="camel"
> xmlns="http://activemq.apache.org/camel/schema/spring">
> <route>
> <from uri="aries:file"/>
> <splitter>
> <xpath>/CiResponse/Items/HardGoodItem</xpath>
> <to uri="aries:dbwriter"/>
> </splitter>
>
> </route>
> </camelContext>
>
> The part I'm stuck on, is what to use for the targetService in the
> filepoller su declaration to send the message from the file poller to camel
> to start it's processing
>
> Any pointers would be great,
> Thanks.
>
>