Why not disable decision threads in apache Felix

I am trying to embed Felix in Embedded Tomcat. Everything works fine. However, when I close the Felix framework (deployed SCR, cm, event admin and metatype services), this will give me a framework completion event. But the threads are still alive in the ResolveImpl executor.

So, I have a bunch of "FelixResolver-" threads still dangling. I cannot get the threads to disconnect since they are owned by the executor.

Shutdown sequence:

framework.stop();
final FrameworkEvent fe = framework.waitForStop(wait);

      

and i get

fe.getType() == FrameworkEvent.STOPPED.

      

Felix Framework is "org.apache.felix.framework-5.6.1.jar"

I am using the following felix packages:

  • org.apache.felix.configadmin-1.8.14.jar
  • org.apache.felix.eventadmin-1.4.8.jar
  • org.apache.felix.log-1.0.1.jar
  • org.apache.felix.metatype-1.1.2.jar
  • org.apache.felix.scr.compat-1.0.4.jar
  • org.apache.felix.scr-2.0.8.jar

I manually install and run packages. I am not stopping the packets, instead I am stopping the frame packet using the above.

Install order (initial order after installation):

  • org.apache.felix.configadmin [version 1.8.14]
  • org.apache.felix.eventadmin [version 1.4.8]
  • org.apache.felix.log [version 1.0.1]
  • org.apache.felix.metatype [version 1.1.2]
  • org.apache.felix.scr [version 2.0.8]
  • org.apache.felix.scr.compat [version 1.0.4]

What am I doing wrong?

Cheers, Mario

EDIT 1:

I upgraded to felix framework 5.6.2 but the problem still remains.

+3
threadpool osgi apache-felix


source to share


No one has answered this question yet

Check out similar questions:

114
OSGi: What are the differences between Apache Felix and Apache Karaf?
4
Apache Felix installation example
2
OSGi Felix embed in Android throws in UnsupportedOperationException: Cannot load this class file type
2
Apache Felix SCR Update for OSGi R6 Declarative Services - @Property
2
ClassCastException while using log4j in osgi felix embed application while using log4j packages
1
Apache Felix - Resolving WebConsole Dependencies
1
Configuring the Apache Felix Bridge Servlet
0
Apache Felix won't start
0
Initial launch of big OSGi migration - osgi.wiring.package = android.dalvik?
0
Synchronization between infrastructure listener and events at startup



All Articles
Loading...
X
Show
Funny
Dev
Pics