This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to close down DSS connection via Java

Hello everybody,

I'm using Java in order to establish a connection to DSS. When shutting down DSS using:

debugSession.terminate()

debugServer.stop()

There are still two threads running which belong to DSS (pool-1-thread-1 and polling thread, see screenshot):

This threads seem to be created by calling

debugServer.openSession()

Regularly this threads are closed when shutting down eg. Eclispe IDE debug session (with which I write the Java  code). But in case the java code is executed in a JVM which is called from a C++ DLL, the remaining running threads hinder the JVM to shut down (using DestroyJavaVM()) after the "my" code is through.

So my question is: How to get rid of the remaining tasks?

Calling the .interrupt() method of these threads doesn't impress them. Calling their .stop() methods leads in creation of new threads and leaves the surrounding C++ environment instable.

 

Thanks, Bjoern