Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6C69E200C73 for ; Wed, 10 May 2017 13:40:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6A7F2160BB4; Wed, 10 May 2017 11:40:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B9E38160BA8 for ; Wed, 10 May 2017 13:40:56 +0200 (CEST) Received: (qmail 46155 invoked by uid 500); 10 May 2017 11:40:55 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 46139 invoked by uid 99); 10 May 2017 11:40:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2017 11:40:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 225AC1A086F for ; Wed, 10 May 2017 11:40:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.487 X-Spam-Level: *** X-Spam-Status: No, score=3.487 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 9DWzA4zCBcaH for ; Wed, 10 May 2017 11:40:54 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B60AA5FC57 for ; Wed, 10 May 2017 11:40:53 +0000 (UTC) Received: from static.162.255.23.22.macminivault.com (unknown [162.255.23.22]) by mwork.nabble.com (Postfix) with ESMTP id 39CC3407EFAD2 for ; Wed, 10 May 2017 04:40:53 -0700 (MST) Date: Wed, 10 May 2017 04:40:53 -0700 (MST) From: Hetmoteus To: users@camel.apache.org Message-ID: <1494416453231-5799221.post@n5.nabble.com> In-Reply-To: References: <1494074065597-5798802.post@n5.nabble.com> Subject: Re: OnApplicationEvent not called with CamelAutoConfiguration MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Wed, 10 May 2017 11:40:57 -0000 Hi, When I shutdown the application with at least 1 inflight exchange I get the following logs : 2017-05-04 18:21:59.748 WARN 12188 --- [er[test.queue]] o.a.activemq.jms.pool.PooledSession : Caught exception trying rollback() when putting session back into the pool, will invalidate. javax.jms.IllegalStateException: The Session is closed After some investigation via breakpoints. On shutdown the ConnectionFactory.stop() method is called before the CamelContext is shutdown. After more investigation, SpringCamelContext has a method called "onApplicationEvent" which is handling the spring shutdown. But this method is never called. Is that normal ? When I create a @Component which @Inject SpringCamelContext and call it manually it works. -- View this message in context: http://camel.465427.n5.nabble.com/OnApplicationEvent-not-called-with-CamelAutoConfiguration-tp5798802p5799221.html Sent from the Camel - Users mailing list archive at Nabble.com.