could someone please answer this question ? It's a simple one - all I ask is to tell me, if it's possible in Fuse ESB 4.0 preview to:
deploy an osgi bundle (using BundleActivator or beans.xml)
deploy another osgi bundle and discover the bundle deployed in point 1 using context.getServiceReference(...) or context.getServiceReferences(...)
is it possible ?
will appreciate your help
Your scenario should definitely work. We use this all the time in ServiceMix 4 (both the registerContext() and Spring DM <osgi:service /> approach). ServiceMix 4's Kernel is just an OSGi runtime, so there's no magic there.
If you look at the ServiceMix 4 log files, you'll see services being registered all the time. Do you see the same thing happening for your service too?
P.S. Sorry for the communication lag -- vacation and holidays...
Hello Gert, thx for you answer.
I probably tried to do too many things at once - now I've simplified my examples a little bit and everything works fine. No problem with discovering services no matter if they are deployed with registerService() or <osgi:service /> approach. It works.