Bugs item #625655, was opened at 2002-10-19 12:37 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=625655&group_id=22866
Category: JBossMQ Group: CVS HEAD Status: Open Resolution: None Priority: 5 Submitted By: Terry Rosenbaum (trosenbaum) Assigned to: Nobody/Anonymous (nobody) Summary: Client using OIL2 lingers 1 min. at exit Initial Comment: A client using the OIL2 invocation layer lingers 1 minute when exiting. Did the following: Create a TopicConnection (OIL2ConnectionFactory) Create a TopicSession (untransacted, auto ack) Lookup a Topic Create a TopicPublisher for the Topic Create a TemporaryTopic Create a TopicSubscriber for the TemporaryTopic Publish a message using TopicPublisher close() TopicPublisher close() TopicSubscriber close() TopicSession close() TopicConnection return from main thread At this point, there is a 1 minute delay before the process actually exits. When using OIL instaed (ConnectionFactory) the process exits immediately. The delay has to do with the PooledExecutor used by the OIL2SocketHandler. This can be fixed by modifying the OIL2SocketHandler.stop() method to interrupt all tasks in its pool: Change: public void stop() { if (log.isTraceEnabled()) log.trace("Stopping"); running = false; worker.interrupt(); } To: public void stop() { if (log.isTraceEnabled()) log.trace("Stopping"); running = false; worker.interrupt(); pool.interruptAll(); } I don't know enough about this code yet to say for ceratin that this is the right thing to do. I'm hoping that someone who does understand OIL2 code fully can look at/fix this issue. After applying the above modification, the same sequence above results in the process exiting immediately when the main thread exits (no more 1 minute delay). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=625655&group_id=22866 ------------------------------------------------------- This sf.net email is sponsored by: Access Your PC Securely with GoToMyPC. Try Free Now https://www.gotomypc.com/s/OSND/DD _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development