Hi Felix,

This really depends on the Camel registry [1] you are using. For OSGi
registries you can deploy new beans and processors as the OSGi bundles. For
Spring applications you can use the Spring Bean Registry API [2].

In general as soon as given bean will be available for the Camel registry
[1], Camel will be able to find it. However adding the bean at runtime is
something outside the scope of the Camel itself - you have to rely on your
IoC framework to do the heavy-lifting.

Cheers!

[1] http://camel.apache.org/registry.html
[2]
https://gopinathb4u.wordpress.com/2010/12/30/create-dynamic-spring-beans/

wt., 25.08.2015 o 09:12 użytkownik fxthomas <[email protected]>
napisał:

> hello Christain,
>
>     Sorry , I was not clear in the question.  I meant the bean tags in XML
> ,
> can it be loaded dynamically  in camel i.e. a java method which will get
> the
> bean definations from a DB rather that hardcoding it in XML.
>
> I know that using a complex Java reflection I can load the class and bind
> it
> in the registry via the BIND method of the MAIN Class.  I was wondering
> just
> like the loadRoutes method which can accept a XML stream , can I do the
> same
> for the java beans (which are mostly processor & datasoource entries).
>
>
> Hope I was clear
>
> regards,
> Felix T
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Load-Bean-Definitions-from-XML-in-Camel-tp5770892p5770958.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
-- 
Henryk Konsek
http://about.me/hekonsek

Reply via email to