<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Destroy-method not getting called when JBossAS is shutdown
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/saltnlight5">Zemian Deng</a> in <i>Snowdrop</i> - <a href="https://community.jboss.org/message/750868#750868">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>FYI, here is my log output. Notice at the end that I don't see my "stopped" message.</p><blockquote class="jive-quote"><p>22:20:23,676 INFO&#160; [org.jboss.modules] JBoss Modules version 1.1.1.GA</p><p>22:20:23,969 INFO&#160; [org.jboss.msc] JBoss MSC version 1.0.2.GA</p><p>22:20:24,006 INFO&#160; [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting</p><p>22:20:24,650 INFO&#160; [org.xnio] XNIO Version 3.0.3.GA</p><p>22:20:24,650 INFO&#160; [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)</p><p>22:20:24,661 INFO&#160; [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA</p><p>22:20:24,669 INFO&#160; [org.jboss.remoting] JBoss Remoting version 3.2.3.GA</p><p>22:20:24,678 INFO&#160; [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers</p><p>22:20:24,679 INFO&#160; [org.jboss.snowdrop] (ServerService Thread Pool -- 27) Activating Spring Deployer subsystem</p><p>22:20:24,680 INFO&#160; [org.jboss.as.configadmin] (ServerService Thread Pool -- 28) JBAS016200: Activating ConfigAdmin Subsystem</p><p>22:20:24,701 INFO&#160; [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 33) JBAS010280: Activating Infinispan subsystem.</p><p>22:20:24,712 INFO&#160; [org.jboss.as.webservices] (ServerService Thread Pool -- 50) JBAS015537: Activating WebServices Extension</p><p>22:20:24,717 INFO&#160; [org.jboss.as.security] (ServerService Thread Pool -- 46) JBAS013101: Activating Security Subsystem</p><p>22:20:24,718 INFO&#160; [org.jboss.as.osgi] (ServerService Thread Pool -- 41) JBAS011940: Activating OSGi Subsystem</p><p>22:20:24,720 INFO&#160; [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem</p><p>22:20:24,726 INFO&#160; [org.jboss.as.security] (MSC service thread 1-5) JBAS013100: Current PicketBox version=4.0.7.Final</p><p>22:20:24,764 INFO&#160; [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)</p><p>22:20:24,775 INFO&#160; [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service</p><p>22:20:24,798 INFO&#160; [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]</p><p>22:20:24,818 INFO&#160; [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.2.GA</p><p>22:20:24,838 INFO&#160; [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 29) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)</p><p>22:20:25,021 INFO&#160; [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-8) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080</p><p>22:20:25,213 INFO&#160; [org.jboss.as.server.deployment.scanner] (MSC service thread 1-6) JBAS015012: Started FileSystemDeploymentService for directory /Users/zemian/apps/jboss/standalone/deployments</p><p>22:20:25,219 INFO&#160; [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:9999</p><p>22:20:25,220 INFO&#160; [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on /127.0.0.1:4447</p><p>22:20:25,329 INFO&#160; [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]</p><p><span>22:20:25,341 INFO&#160; [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on </span><a class="jive-link-external-small" href="http://127.0.0.1:9990" target="_blank">http://127.0.0.1:9990</a></p><p>22:20:25,342 INFO&#160; [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 1873ms - Started 133 of 209 services (74 services are passive or on-demand)</p><p>22:20:25,348 INFO&#160; [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "jboss-spring-app-1.0.0-SNAPSHOT.jar"</p><p>22:20:25,547 INFO&#160; [org.jboss.spring.factory.NamedXmlApplicationContext] (MSC service thread 1-2) Refreshing org.jboss.spring.factory.NamedXmlApplicationContext@28800269: startup date [Sun Jul 29 22:20:25 EDT 2012]; root of context hierarchy</p><p>22:20:25,580 INFO&#160; [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-2) Loading XML bean definitions from "/content/jboss-spring-app-1.0.0-SNAPSHOT.jar/META-INF/jboss-spring.xml"</p><p>22:20:26,368 INFO&#160; [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-2) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1f1eaa09: defining beans [helloService]; root of factory hierarchy</p><p>22:20:26,381 INFO&#160; [deng.HelloService] (MSC service thread 1-2) started.</p><p>22:20:26,432 INFO&#160; [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "jboss-spring-app-1.0.0-SNAPSHOT.jar"</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>^C22:20:30,647 INFO&#160; [org.jboss.as.osgi] (MSC service thread 1-7) JBAS011942: Stopping OSGi Framework</p><p>22:20:30,652 INFO&#160; [org.jboss.as.logging] JBAS011503: Restored bootstrap log handlers</p><p>22:20:30,654 INFO&#160; [com.arjuna.ats.jbossatx] ARJUNA032018: Destroying TransactionManagerService</p><p>22:20:30,655 INFO&#160; [com.arjuna.ats.jbossatx] ARJUNA032014: Stopping transaction recovery manager</p><p>22:20:30,658 INFO&#160; [org.apache.catalina.core.StandardContext] Container org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/] has not been started</p><p>22:20:30,658 INFO&#160; [org.apache.coyote.http11.Http11Protocol] Pausing Coyote HTTP/1.1 on http--127.0.0.1-8080</p><p>22:20:30,659 INFO&#160; [org.apache.coyote.http11.Http11Protocol] Stopping Coyote HTTP/1.1 on http--127.0.0.1-8080</p><p>22:20:30,661 INFO&#160; [org.jboss.as.server.deployment] JBAS015877: Stopped deployment jboss-spring-app-1.0.0-SNAPSHOT.jar in 18ms</p><p>22:20:30,669 INFO&#160; [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final "Brontes" stopped in 24ms</p></blockquote></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/750868#750868">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Snowdrop at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2082">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>