Trying recipient-list pattern(dynamic to create to endpoint to invoke beans in registry), it will look registry of osgi first(Clause has already said )
-----original ----- Sender: klausb [mailto:[email protected]] Date: 2010/12/14 23:31 Sender: [email protected] Subject: Re: How to setup a dynamic route using beans in Java w/o having a spring ref to them? Hi Claus, I tried it, but it doesn't work. The point is, that my dynamic Java-DSL route-builder does not know, what the IDs of the beans are, which are added to the routes. It works, if I'm adding the osgi:ref to one of the spring resource files, like this: <osgi:reference id="myBean" interface="com.corp.MyIF"/> Without this line, the bean is not found inside a bean step like this: .to("bean:${beanName}?method=collect"), where beanName=myBean. This is the dynamic part of this route-builder (Groovy string). What I'm looking for is a way to do the lookup like <osgi:ref...> statement in my Java code during route construction. klaus. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-setup-a-dynamic-route-using-beans-i n-Java-w-o-having-a-spring-ref-to-them-tp3304398p3304754.html Sent from the Camel - Users mailing list archive at Nabble.com.
