Yes, Current Camel OSGi registry just grab the service from OSGi service
registry, it doesn't support the filter.
I think this feature is easy to add and please don't hesitate to
contribute your patch.
On 12/16/10 7:25 PM, ext2 wrote:
Camel Osgi registry doesn't support filter for services;
You'd better write your own processor to locate osgi services; it's not so
sophisticated , just do some reflecting works;
But if you do wish to use camel bean's features, the only way I know is
change the source code of CamelOsgiRegistry to support osgi service filter;
(it's unfortunately) then you can use recipient list to dynamic create a
endpoint to invoke osgi service;
-----Original-----
Sender: klausb [mailto:klaus.baumec...@hp.com]
Date: 2010/12/16 17:47
Receiver: users@camel.apache.org
Subject: Re: How to setup a dynamic route using beans in Java w/o having a
spring ref to them?
Hi Sebastian,
thanks for the good explaination. However I do not have a problem with a
dynamic bean activation as such.
I was rather asking for a method to avoid the osgi reference tag, because
the wiring-component, that creates the routes from an external config should
not know about the beans in advance. Which is the case, if I have to
register all the potential beans in the spring file.
klaus
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang