Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4ED2175DC for ; Tue, 9 Aug 2011 14:31:02 +0000 (UTC) Received: (qmail 11155 invoked by uid 500); 9 Aug 2011 14:31:01 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 11097 invoked by uid 500); 9 Aug 2011 14:31:01 -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 Received: (qmail 11089 invoked by uid 99); 9 Aug 2011 14:31:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 14:31:01 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gary.tully@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qw0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Aug 2011 14:30:55 +0000 Received: by qwf6 with SMTP id 6so35676qwf.2 for ; Tue, 09 Aug 2011 07:30:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=TqXozns3EEJD2YBDbaUaBKS8hd2pEuvSOJzWZ+6O9og=; b=OhGmGAg5aIUbIx6zWXh0RzF/U797xOFDFzFm6iz0fiiorwqhmQaVnh9nFMcod14aZF C9vW07nzv+jyzFiXcgukU13ofVd9nJaH0+tuYiwMjdNmboJ5aUUAfIQBHGyLtei793rU l8RSHJNWKeGmC6J3oiB4fJQHTLW8AfxaAORjk= MIME-Version: 1.0 Received: by 10.224.181.79 with SMTP id bx15mr5287665qab.372.1312900234539; Tue, 09 Aug 2011 07:30:34 -0700 (PDT) Received: by 10.229.160.1 with HTTP; Tue, 9 Aug 2011 07:30:34 -0700 (PDT) In-Reply-To: <1312845417241-3728577.post@n4.nabble.com> References: <1312845417241-3728577.post@n4.nabble.com> Date: Tue, 9 Aug 2011 15:30:34 +0100 Message-ID: Subject: Re: Restarting ActiveMq removes/cleans all persisted messages/queues/topics From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org this is very wrong! To narrow down the problem, try using embedded derby for a quick test, use Also, can you post the logs of a broker restart, enable TRACE level logging for org.apache.activemq It may make sense to open a jira issue to track this till we get to the bottom of it. On 9 August 2011 00:16, pol_ice wrote: > Hi there, > > I am experiencing problem with activemq restarting. Whenever it is restar= ted > no messages, queues or topics remain. > I an using ms sql server for persistence and I see all messages successfu= lly > saved in db, after the activemq service is restarted - number of messaged= in > db remains to be the same - but admin panel shows nothing - meaning there > are no messages or queues previously created. > > I saw a number of questions about it in the forum, but none of them helpe= d. > > Here is my activemq settings file: > > ------------------------------------- > =A0xmlns=3D"http://www.springframework.org/schema/beans" > =A0xmlns:amq=3D"http://activemq.apache.org/schema/core" > =A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > =A0xsi:schemaLocation=3D"http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > =A0http://activemq.apache.org/schema/core > http://activemq.apache.org/schema/core/activemq-core.xsd"> > > =A0 =A0 class=3D"org.springframework.beans.factory.config.PropertyPlaceholderConf= igurer"> > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0file:${activemq.base}/conf/credentials.prop= erties > =A0 =A0 =A0 =A0 > =A0 =A0 > > =A0 =A0 =A0 =A0 destroy-method=3D"close"> > =A0 =A0 =A0 =A0 value=3D"com.microsoft.sqlserver.jdbc.SQLServerDriver"/> > =A0 =A0 =A0 =A0 value=3D"jdbc:sqlserver://localhost:1433;databaseName=3DNotifications;use= r=3Dsa;password=3Dpass"/> > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 > > =A0 =A0 brokerName=3D"localhost" dataDirectory=3D"${activemq.base}/data" > destroyApplicationContextOnStop=3D"true" useJmx=3D"true" persistent=3D"tr= ue" > deleteAllMessagesOnStartup=3D"false"> > > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0" producerFlowControl=3D"false" memoryLimit=3D"1mb" > expireMessagesPeriod=3D"100000" gcInactiveDestinations=3D"true" > inactiveTimoutBeforeGC=3D"30000"> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 useQueueForTopicMessages=3D"true" useQueueForQueueMessages=3D"true" > processExpired=3D"false" processNonPersistent=3D"false"/> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 rmiServerPort=3D"11119" jmxDomainName=3D"org.apache.activemq"/> > =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 useDatabaseLock=3D"false"> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > > =A0 =A0 > > =A0 =A0 > > > ------------------------------------- > > I have read that camel can clear the messages, so I have commented it out= in > jetty.xml as well, but since no queues remain after restart I believe it = is > not that messages were dequeued, but something is clearing the whole > topic/queue structure upon activemq restart. > > Any clues? It is required if messages were enqueued, they are still > available for consumers if activemq service is restarted. > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Resta= rting-ActiveMq-removes-cleans-all-persisted-messages-queues-topics-tp372857= 7p3728577.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --=20 http://fusesource.com http://blog.garytully.com