Hi If you use spring then just declare it as a spring bean <bean id="foo" class="mycompany.FooComponent"/>
And have that bean implement org.apache.camel.Component <route> <from uri="foo://someendpoint?bar=123"/> ... </route> On Tue, Sep 22, 2009 at 10:07 AM, Srivatsa Katta <[email protected]> wrote: > > Hi, > > I am trying to register a custom component, which is the right place to > register/add a new component programaticaly. Currently doing it in > RouteBuilder, but when I use that component in one of the routes, it throws > up the Failed to resolve endpoint with scheme <componentname>. > > And is there any example or good documentation on creating and using custom > components, the documentation provided in the camel > http://camel.apache.org/writing-components.html WritingComponents isn't > good enough for newbies I think. > > Any pointers would be helpful. > > Cheers! > Katta > > > -- > View this message in context: > http://www.nabble.com/Writing-Custom-Components-tp25530614p25530614.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
