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


source to share





All Articles