Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3087890A3 for ; Wed, 21 Sep 2011 23:24:50 +0000 (UTC) Received: (qmail 48913 invoked by uid 500); 21 Sep 2011 23:24:50 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 48879 invoked by uid 500); 21 Sep 2011 23:24:49 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 48870 invoked by uid 99); 21 Sep 2011 23:24:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 23:24:49 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 23:24:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 34202A70E7 for ; Wed, 21 Sep 2011 23:24:26 +0000 (UTC) Date: Wed, 21 Sep 2011 23:24:26 +0000 (UTC) From: "Robert Liguori (JIRA)" To: dev@activemq.apache.org Message-ID: <1967381576.385.1316647466210.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-2931) ActiveMQ warning - needing Java shutdown hook. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-2931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13112222#comment-13112222 ] Robert Liguori commented on AMQ-2931: ------------------------------------- "The warning is generated from a method that is deprecated but left in for legacy support." Thanks for the info... but I really don't understand the feature that is valuable for legacy support. Can you explain further? -- Robert > ActiveMQ warning - needing Java shutdown hook. > ---------------------------------------------- > > Key: AMQ-2931 > URL: https://issues.apache.org/jira/browse/AMQ-2931 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.4.0 > Reporter: Robert Liguori > Priority: Minor > Original Estimate: 3h > Remaining Estimate: 3h > > Starting Apache ActiveMQ 5.4.0 shows the following warning: > WARN | destroyApplicationContextOnStop parameter is deprecated, please use shutdown hooks instead > --------------------------------------------------------------------------------------- > Case Study: Apache Servicemix applies the appropriate fix: > From: http://servicemix.apache.org/getting-started.html > Stopping ServiceMix > For both Windows and Unix installations, terminate ServiceMix by typing "CTRL-C" on the command line where ServiceMix is running. ServiceMix uses the Java shutdown hook to cleanly shut down the container. > Java Shutdown Hook: http://download.oracle.com/javase/1.4.2/docs/guide/lang/hook-design.html > --------------------------------------------------------------------------------------- > The issue is for the Apache ActiveMQ to use teh the shutdown hook as is done with Servicemix, therefore correcting the problem and removing the warning. > Thanks. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira