ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google

Mail Archive Home | oscar List | January 2006 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [oscar] problems related to context in Oscar

The obligatory question: Which version of Oscar?

Did you try this also on Felix? It would be interesting to try it, since there were major changes to concurrency control...you could try it on the Oscar 2.0 beta too, that should give you some idea as well.

So, all of this happens in the start() of the bundle activator or are you starting a thread or something?

-> richard

Dinesh Bhat wrote:

Hello all,
I have a mica sensor board which receives the light intensity levels from mica2 sensor boards. What I wanted to do is when the light intensity goes below a certain threshold , a certain bundle gets installed and becomes active. Now, here's what I did (for explanation only): class Activator
public static BundleContext context;
context is given here.
check intensity();
class B
Bundle myBundle;
 if (intensity < threshold)
  myBundle = Activator.context.installBundle("file:hello.jar");
Now, when I install the bundle on Oscar, it starts receiving the values sent by the sensors. However, when the value goes below the threshold, the bundle hangs. It does not receive anymore values. It does not even install the bundle. However, the exact same set up runs fine on knopflerfish. I believe there is some problem related context in Oscar. Can anybody tell me what's so different between Oscar and Knopflerfish that my bundle works on one and does not work on the other? Thanks Dinesh

Dinesh Bhat

http://www.win.trlabs.ca/~bhatdinu <http://www.win.trlabs.ca/%7Ebhatdinu>


You receive this message as a subscriber of the oscar@xxxxxxxxxxxxx mailing 
To unsubscribe: mailto:oscar-unsubscribe@xxxxxxxxxxxxx
For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.