On Fri, Apr 13, 2012 at 10:21 AM, Thibault <[email protected]> wrote:
> Hi all,
>
> I need to override the existing Apache Camel Mail component, in order to
> implement a non standard mail format.
> I didn't find any information about how scheme is resolved if there are
> multiple components registering it. For example, I will have my custom
> component using schemes imap, imaps, smtp, ...  How can I be sure that at
> runtime, Auto-Discovery process will call my custom component instead of
> Apache Camel one for a given imap uri?
>

If you use Java only, then you can add your component manually

context.addComponent("smtp", new MyMailComponent);

If you use XML, then you can add your custom component as a <bean> tag

<bean id="smtp" class="...MyMailComponent"/>



> Thanks,
> Thibault
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Custom-component-with-existing-scheme-tp5637644p5637644.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
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/

Reply via email to