Hi Reto, Mhh only thing than comes to mind is that you simply don't wait long enough ? The testprobe is the last component that is being installed+started, after that the code in @Before is executed, directly followed by the test itself. I guess a third bundle (not testprobe) is the consumer in question that injects the just published service, correct ?
The test sake you could wait for a while before you (in test mehod) make the service call in question. Let me know your results. cheers, Toni On Wed, Sep 30, 2009 at 8:34 AM, Reto Bachmann-Gmür < [email protected]> wrote: > Hello, > > I'm having the problem that services I register with > > bundleContext.registerService(Object.class.getName(), > new SimpleRootResource(), properties); > > are not being injected to DS component if the code above is in the > @Before method of the test, but are injected if the code above is in the > activator of another bundle. > > before doing a minimalistic example demonstarting the problem, I thought > I ask if somebody knows the problem or what could cause it. > > cheers, > reto > > -- > Reto Bachmann-Gmür > trialox.org > Tel: +41445005015 > > > > _______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general > -- Toni Menzel Independent Software Developer Professional Profile: http://okidokiteam.com [email protected] http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software.
_______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
