camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: FileConsumer->MyProducer1->MyProducer2?
Date Wed, 10 Aug 2011 12:01:24 GMT
On Tue, Aug 9, 2011 at 6:14 PM, Michael Mertins
<Michael.Mertins@saperion.com> wrote:
> Hi JB,
>
> then I get this error:
>
> Caused by: java.lang.IllegalArgumentException: registry entry called myProducer1must
be specified on: process
>
> I registered my component here
> \META-INF\services\org\apache\camel\component\myProducer1
>
> Regards,
>
> Michael
>
>

See here about using a Processor in Camel
http://camel.apache.org/processor

eg you can declare it as a <bean> in the XML file.


>
> Hi Michael,
>
> by careful, in your route, you define bean and not processor.
>
> To define processor, you should use:
>
> <route>
>    <from uri="file://C:/fileDir" />
>    <process ref="myProducer1" />
>
> Regards
> JB
>
>
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message