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 308E6200C86 for ; Wed, 31 May 2017 18:32:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2EAF0160BCB; Wed, 31 May 2017 16:32:49 +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 75982160BC2 for ; Wed, 31 May 2017 18:32:48 +0200 (CEST) Received: (qmail 30828 invoked by uid 500); 31 May 2017 16:32:47 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Delivered-To: moderator for users@activemq.apache.org Received: (qmail 2545 invoked by uid 99); 31 May 2017 16:23:10 -0000 X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.737 X-Spam-Level: *** X-Spam-Status: No, score=3.737 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_ENVFROM_END_DIGIT=0.25, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Date: Wed, 31 May 2017 09:08:27 -0700 (PDT) From: rsahadevan To: users@activemq.apache.org Message-ID: <1496246907718-4726828.post@n4.nabble.com> Subject: ActiveMQ Embedded with Tomcat missing messages while restart MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Wed, 31 May 2017 16:32:49 -0000 Hi All, Thanks in Advance. We have an ActiveMQ embedded running Tomcat with spring configuration. After Tomcat server restarts few records from the persisted queue are getting missed out. Below is my spring config. It seems the issue may be ActiveMQ embedded starting faster than tomcat and is not getting Hibernate connection for database. Could you please advise. While restart I am getting error like this java.lang.NullPointerException at org.codehaus.groovy.grails.orm.hibernate.transaction.PlatformTransactionManagerProxy.getTransaction(PlatformTransactionManagerProxy.java:22) Regards Viraj -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Embedded-with-Tomcat-missing-messages-while-restart-tp4726828.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.