From users-return-15754-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Mon Sep 01 06:53:12 2008 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 53199 invoked from network); 1 Sep 2008 06:53:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Sep 2008 06:53:12 -0000 Received: (qmail 11014 invoked by uid 500); 1 Sep 2008 06:53:10 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 10990 invoked by uid 500); 1 Sep 2008 06:53:10 -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 10979 invoked by uid 99); 1 Sep 2008 06:53:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 Aug 2008 23:53:10 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajdavies@gmail.com designates 74.125.78.150 as permitted sender) Received: from [74.125.78.150] (HELO ey-out-1920.google.com) (74.125.78.150) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Sep 2008 06:52:10 +0000 Received: by ey-out-1920.google.com with SMTP id 21so637324eyc.26 for ; Sun, 31 Aug 2008 23:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=d/3PGKzHBMEc/tth3/SlqIIjRJasWmk1B/bPSuOAsAo=; b=NF2NAhLdq2+vrVZ2C1bxUt6Ye+2Wpc5Gj9CZmClM4ytsRhClri9JDZlAbEva1IcN2G 7DPKbm5wtjIq3z7bKvpmxWIu8U6rWNo7SxJ/ZtJH8QJjZTM+P75BjR7lzYzVdKXGYq5X oAcCfaepyaUEquLkCfH4HlaDtOB+h/PNx9h6A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=sSIGnzdkfE7VUq7DM86WDxZjRfTOiz+ZOPFBPcG896fbOvktVjXk3lSqmQpI9DqCht LZxd0VVFSWi8WlsI2Go/7t3RmnNim2NF74GlKcU2S92K3J0V5FseK1vDDGqvPJ3ZZ/rZ xFqKCvzyl2QSszbmesT4QkpkgLF5Jw2H0Pxbk= Received: by 10.210.19.4 with SMTP id 4mr6008440ebs.134.1220251959532; Sun, 31 Aug 2008 23:52:39 -0700 (PDT) Received: from ?192.168.1.68? ( [86.161.177.175]) by mx.google.com with ESMTPS id m5sm6114465gve.3.2008.08.31.23.52.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 31 Aug 2008 23:52:38 -0700 (PDT) Message-Id: <6D086A6A-CB47-4865-817F-BDF7B26F470A@gmail.com> From: Rob Davies To: users@activemq.apache.org In-Reply-To: <19248986.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Subject: Re: On Restarting ActiveMQ my Old Queues get deleted. Date: Mon, 1 Sep 2008 07:52:35 +0100 References: <19248879.post@talk.nabble.com> <19248986.post@talk.nabble.com> X-Mailer: Apple Mail (2.928.1) X-Virus-Checked: Checked by ClamAV on apache.org ok - comment out the memory persistent adaptor - in your config - which only keeps messages in memory. ActiveMQ will then use the default - which stores messages on your local disk cheers, Rob Rob Davies http://rajdavies.blogspot.com/ On 1 Sep 2008, at 06:12, Jigar Naik wrote: > > Nopes i m sending persistent messages. Bellow is my producer code > > public static void startSendMessage(String queueName){ > try{ > Producer.connectionFactory = new > ActiveMQConnectionFactory("tcp://localhost:61616"); > Producer.connection = connectionFactory.createConnection(); > Producer.connection.start(); > Producer.session = connection.createSession(false, > Session.AUTO_ACKNOWLEDGE); > Producer.destination = session.createQueue(queueName); > Producer.producer = session.createProducer(destination); > Producer.producer.setDeliveryMode(DeliveryMode.PERSISTENT); > Producer.textMessage = session.createTextMessage(); > }catch(Exception e){ > e.printStackTrace(); > } > } > > it has to be something with configuration file. please find the > attached > configuration file. and guide me for the same. > > http://www.nabble.com/file/p19248986/activemq.xml activemq.xml > > > > rajdavies wrote: >> >> >> On 1 Sep 2008, at 05:49, Jigar Naik wrote: >> >>> >>> Hi, >>> >>> I am facing problem with activeMQ, the problem is when i restart the >>> activeMQ, my old queues get deleted and i am loosing the messages in >>> that >>> queue, >>> >>> Is this a configuration issue in activemq.xml file ? >>> -- >>> View this message in context: >>> http://www.nabble.com/On-Restarting-ActiveMQ-my-Old-Queues-get-deleted.-tp19248879p19248879.html >>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>> >> >> Its either down to the configuration you are using - or that you are >> sending messages with a NON_PERSISTENT DeliveryMode ? >> >> >> >> cheers, >> >> Rob >> >> Rob Davies >> http://rajdavies.blogspot.com/ >> >> >> > > -- > View this message in context: http://www.nabble.com/On-Restarting-ActiveMQ-my-Old-Queues-get-deleted.-tp19248879p19248986.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >