Mail Archive Home | oscar List | January 2006 Index
problems related to context in Oscar
- Subject: problems related to context in Oscar
- From: Dinesh Bhat <dinubhat@xxxxxxxxx>
- Date: Tue, 10 Jan 2006 15:42:20 -0600
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Rx8gMudhHHrrHNkZEER5+vn7orE8V2/FeAZfzE1uRPh6DsdRLQHmAL11GzvTN4tXWwn7eW60TBxgTRDpoWYMl2RwV9oBxwoHasvTJbyV6r4jn/C2x3DaQ+6dBnXQaskSBwfNbNK/LAOOktuyVeslXjnZmUMQjG3B+FWlN6nYzW8=
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):
public static BundleContext context;
context is given here.
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?
- problems related to context in Oscar,
Powered by MHonArc.
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.