Hi,

I've had strange problems like that when running programs expecting inputs from 
the console (like the felix's TUI). This would sometimes have strange 
repercutions on other threads (like the graphic thread).
If you have the felix console launched, can you try without it (use the GUI 
instead to manage bundles) ?

Anne

-----Message d'origine-----
De : Streeton, Matt [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 2 juillet 2008 19:44
À : [email protected]
Objet : Re: Declarative Service threading issue

It seems to be an issue with threads being started during the initialization 
process. My activate function is called (I have put debug statements inside, 
used breakpoints, etc), and stops on the thread starting call. It has the same 
behavior even if it is a standard service being started as a bundle activator 
and I place the thread creation in the start() method. I haven¹t had any issues 
with threads starting in other places during the OSGi lifecycle, only during 
startup. I can confirm that the issue is only while running through an IDE, as 
mentioned by Patrick. The thread starts up fine while run from the command 
line. Any ideas why Felix would have issues running within an IDE (I¹m using 
IntelliJ IDEA, but it apparently has problems with Eclipse as well)? I am 
running by having the IDE call felix.main.Main as its main class, and pass a 
config.properties file as a VM parameter to start my bundles.

Thanks,
Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to