-
1. Re: esb 4.0 preview - BundleActivator vs. beans.xml
tokc Aug 14, 2008 7:37 AM (in response to tokc)hello,
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
Tomek Kaczanowski
-
2. Re: esb 4.0 preview - BundleActivator vs. beans.xml
gertv Aug 20, 2008 2:41 AM (in response to tokc)Tomek,
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?
Regards,
Gert
P.S. Sorry for the communication lag -- vacation and holidays...
-
3. Re: esb 4.0 preview - BundleActivator vs. beans.xml
tokc Aug 20, 2008 4:51 AM (in response to gertv)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.
thx
Tomek Kaczanowski