Guillaume,
Is there a way to inject a bean manager instead of a bean itself using
Blueprint?
Cheers,
JP
[@@ OPEN @@]
De : Guillaume Nodet [mailto:gno...@apache.org]
Envoyé : mardi 4 juin 2013 17:20
À : user
Objet : Re: service / reference-list within same bundle
If you don't need to iterator
]
*Envoyé :* mardi 4 juin 2013 17:20
*À :* user
*Objet :* Re: service / reference-list within same bundle
** **
If you don't need to iterator through osgi services, you could use a
simple list element instead.
The problem with using osgi services and references
Ok, good.
Which kind of Java parameter type is injected for id-ref ? String?
JP
[@@ OPEN @@]
De : Guillaume Nodet [mailto:gno...@apache.org]
Envoyé : mercredi 5 juin 2013 11:42
À : user
Objet : Re: service / reference-list within same bundle
You can't inject a bean manager, but you can inject
:* mercredi 5 juin 2013 11:42
*À :* user
*Objet :* Re: service / reference-list within same bundle
** **
You can't inject a bean manager, but you can inject the id using
id-ref=xyz, inject the blueprint container using ref=blueprintContainer
and then programmatically ask the blueprint container
: service / reference-list within same bundle
Yes
2013/6/5 CLEMENT Jean-Philippe
jean-philippe.clem...@fr.thalesgroup.commailto:jean-philippe.clem...@fr.thalesgroup.com
Ok, good.
Which kind of Java parameter type is injected for id-ref ? String?
JP
[@@ OPEN @@]
De : Guillaume Nodet [mailto:gno
?*
***
** **
JP
** **
[@@ THALES GROUP INTERNAL @@]
** **
*De :* Guillaume Nodet [mailto:gno...@apache.org]
*Envoyé :* mercredi 5 juin 2013 12:41
*À :* user
*Objet :* Re: service / reference-list within same bundle
** **
Yes
** **
2013/6/5 CLEMENT Jean-Philippe jean
Dear Karaf team,
I would like to use a reference-list on a service which is exported in the same
bundle. Starting the bundle blocks on the GracePeriod state.
Is there a way to use a service which is exposed within the same bundle?
Cheers,
JP
[@@ OPEN @@]
Since you're referencing a bean from within the same bundle, it's probably
best to reference the bean and not the service of it.
If you really want to use the service (which I don't understand why) you
should configure Karaf to start the bundles in a synchronous way.
regards, Achim
2013/6/4
: Re: service / reference-list within same bundle
Since you're referencing a bean from within the same bundle, it's probably best
to reference the bean and not the service of it.
If you really want to use the service (which I don't understand why) you should
configure Karaf to start the bundles