so have you tried both (felix+equinox) in exam ? also which versions of felix/equinox?
On Wed, Sep 30, 2009 at 3:24 PM, Reto Bachmann-Gmür < [email protected]> wrote: > Hi Toni, > > Thanks for the reply. It doesn't seem to be a timing issue, even putting > a Thread.sleep(60 * 1000); at the beginning of the test-method doesn't > help. > > Things seems to work with equinox but not with felix (which is where my > code usually runs and works). Possibly the problem occurs only for > dynamic dependencies and not with static ones. > > investigating... > > cheers, > reto > > Toni Menzel said the following on 09/30/2009 11:58 AM: > > 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] <mailto:[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 <http://trialox.org> > > Tel: +41445005015 > > > > > > > > _______________________________________________ > > general mailing list > > [email protected] <mailto:[email protected]> > > http://lists.ops4j.org/mailman/listinfo/general > > > > > > > > > > -- > > Toni Menzel > > Independent Software Developer > > Professional Profile: http://okidokiteam.com > > [email protected] <mailto:[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 > > > > > -- > 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
