RE: service / reference-list within same bundle

2013-06-05 Thread CLEMENT Jean-Philippe
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

Re: service / reference-list within same bundle

2013-06-05 Thread Guillaume Nodet
] *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

RE: service / reference-list within same bundle

2013-06-05 Thread CLEMENT Jean-Philippe
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

Re: service / reference-list within same bundle

2013-06-05 Thread Guillaume Nodet
:* 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

RE: service / reference-list within same bundle

2013-06-05 Thread CLEMENT Jean-Philippe
...@apache.orgmailto: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 the id using id-ref=xyz, inject the blueprint container using ref=blueprintContainer

Re: service / reference-list within same bundle

2013-06-05 Thread Guillaume Nodet
?* *** ** ** 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

Re: service / reference-list within same bundle

2013-06-04 Thread Achim Nierbeck
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

2013-06-04 Thread CLEMENT Jean-Philippe
: 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