I am new at using declarative services to create components and have those
components activated by the SCR. In order to keep my activate functions
brief, I spawn a thread from one of my component¹s activate method (which
has some time consuming processes). For some reason, that thread doesn¹t
seem to actually start until I interact with the Felix console. For example,
Felix starts up, all the bundles are started and activated properly. I don¹t
see the thread activity, however, until I hit the enter key inside the Felix
console. Is there any reason a thread wouldn¹t actually start on its own?
For clarification, I have included my activate method for my component
(which implements Runnable):
protected void activate(ComponentContext ctxt)
{
componentContext = ctxt;
thisThread = new Thread(this);
thisThread.start();
}
Thanks for any help, this has been puzzling!
- Matt