On Tue, Aug 9, 2011 at 6:14 PM, Michael Mertins <[email protected]> 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: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
