On Tue, Dec 14, 2010 at 12:04 PM, klausb <[email protected]> wrote: > > I want to configure routing by an external configuration file. > The routes are made of beans, which register themselves using the > spring/osgi registry. > Now the route builder, made with the Java DSL, wants to use the beans > without knowing them in advance. That is, they are not configured in the > spring config of the route component. > My understanding is, that I cannot use "bean:myBean" URI without having > myBean declared as osgi:reference in a corresponding spring xml file. > > Is there a way to use such a bean, by doing the osgi-resgistry lookup > programatically? >
Why dont you just try it? When using Camel in OSGi it should lookup in the OSGi service registry first, and then fallback to the spring app context afterwards. > klaus. > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-setup-a-dynamic-route-using-beans-in-Java-w-o-having-a-spring-ref-to-them-tp3304398p3304398.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
