Feed-aggregator sample does not stop properly
---------------------------------------------

                 Key: TUSCANY-1953
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1953
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Tomcat Integration
    Affects Versions: Java-SCA-1.1
            Reporter: Jean-Sebastien Delfino
            Assignee: Jean-Sebastien Delfino
             Fix For: Java-SCA-1.1


To reproduce the problem, start the feed-aggregator sample using ant run, point 
your Web browser to http://localhost:8083/atomAggregator, then press enter in 
the window where you started ant run. The program should exit but doesn't.

The problem is that ThreadPoolWorkManager used by the TomcatServer to handle 
incoming HTTP requests and read from the input TCP/IP socket does not create 
Daemon threads. Tomcat leaves a thread alive blocked on the input socket and 
that live thread prevents the JVM to exit.

This problem is not specific to the feed-aggregator sample, it happens with any 
Tuscany application using our embedded TomcatServer. The problem does not occur 
with Jetty.

I am fixing it by marking the threads as Daemon threads in 
ThreadWorkPoolManager.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to