axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond Feng (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-3685) org.apache.axis2.transport.jms.JMSListener.stop() doesn't shutdown the thread pool created in start() for JMSMessageReceiver
Date Mon, 31 Mar 2008 17:42:24 GMT
org.apache.axis2.transport.jms.JMSListener.stop() doesn't shutdown the thread pool created
in start() for JMSMessageReceiver
----------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-3685
                 URL: https://issues.apache.org/jira/browse/AXIS2-3685
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: transports
    Affects Versions: 1.3
            Reporter: Raymond Feng


In JMSListener.start(), there is a thread pool created for the JMSMessageReceiver. But the
thread pool is not shutdown in the stop() method. As a result, the java process cannot be
terminated gracefully unless System.exit() is called.

   public void start() throws AxisFault {
        // create thread pool of workers
        ExecutorService workerPool = new ThreadPoolExecutor(
                1,
                WORKERS_MAX_THREADS, WORKER_KEEP_ALIVE, TIME_UNIT,
                new LinkedBlockingQueue(),
                new org.apache.axis2.util.threadpool.DefaultThreadFactory(
                        new ThreadGroup("JMS Worker thread group"),
                        "JMSWorker"));

        Iterator iter = connectionFactories.values().iterator();
        while (iter.hasNext()) {
            JMSConnectionFactory conFac = (JMSConnectionFactory) iter.next();
            JMSMessageReceiver msgRcvr =
                    new JMSMessageReceiver(conFac, workerPool, configCtx);


-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message