From users-return-30341-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Wed Feb 29 20:12:38 2012 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 4494D9152 for ; Wed, 29 Feb 2012 20:12:38 +0000 (UTC) Received: (qmail 76290 invoked by uid 500); 29 Feb 2012 20:12:37 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 76241 invoked by uid 500); 29 Feb 2012 20:12:37 -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 76228 invoked by uid 99); 29 Feb 2012 20:12:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 20:12:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Wed, 29 Feb 2012 20:12:33 +0000 Received: by qadb15 with SMTP id b15so2581778qad.2 for ; Wed, 29 Feb 2012 12:12:12 -0800 (PST) Received-SPF: pass (google.com: domain of gary.tully@gmail.com designates 10.224.185.207 as permitted sender) client-ip=10.224.185.207; Authentication-Results: mr.google.com; spf=pass (google.com: domain of gary.tully@gmail.com designates 10.224.185.207 as permitted sender) smtp.mail=gary.tully@gmail.com; dkim=pass header.i=gary.tully@gmail.com Received: from mr.google.com ([10.224.185.207]) by 10.224.185.207 with SMTP id cp15mr4307494qab.72.1330546332811 (num_hops = 1); Wed, 29 Feb 2012 12:12:12 -0800 (PST) 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=ToZrQxPpNWs0jhek6TuOB8E3YHYjGkGq0rRjNIxHIf8=; b=Cc/Qg0vQrJj3lGVbsQduIM4bSP96JhaF2KLIeh7E073MKrq6a8rNysVy+tVG1PUAB7 No7qipkxZLkNNn4yt1/Uqp80hWtfoL4k96rjwFxglEc5klzXrbkmG4DI+A5enj3RI4Y8 BqlF1oV7+GhtFeaLSkhWkwn+laZwkJuahNLlo= MIME-Version: 1.0 Received: by 10.224.185.207 with SMTP id cp15mr3591839qab.72.1330546332746; Wed, 29 Feb 2012 12:12:12 -0800 (PST) Received: by 10.229.34.6 with HTTP; Wed, 29 Feb 2012 12:12:12 -0800 (PST) In-Reply-To: <3A2A0F51850C264790C6008B7F92D047195A2F50E2@eeyore.ad.e-dialog.com> References: <3A2A0F51850C264790C6008B7F92D047195A2F50E2@eeyore.ad.e-dialog.com> Date: Wed, 29 Feb 2012 20:12:12 +0000 Message-ID: Subject: Re: How do I set the data directory for the job scheduler? 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 set the dataDirectory attribute on the broker - On 29 February 2012 16:25, Josh Carlson wrote: > We are using =A0a shared file system master/slave configuration. We have = schedulerSupport enabled. When we encounter a failover all 'scheduled' mess= ages are lost. This is because it is using the local disk for the data stor= e for the Job Scheduler. How can I set this directory to our shared file sy= stem (rooted at /queue)? Here is the relevant part of our activemq.xml. > > > > ... > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > > and the broker winds up createing the scheduler directory under the root = file system: /activemq-data/mmuserb2/scheduler > > Here is the relevent part of the log: > > 2012-02-08 10:24:25,808 | INFO =A0| Refreshing org.apache.activemq.xbean.= XBeanBrokerFactory$1@19bb5c09: startup date [Wed Feb 08 10:24:25 EST 2012];= root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1= | main > 2012-02-08 10:24:27,221 | INFO =A0| PListStore:activemq-data/mmuserb2/tmp= _storage started | org.apache.activemq.store.kahadb.plist.PListStore | main > 2012-02-08 10:24:27,301 | INFO =A0| Using Persistence Adapter: KahaDBPers= istenceAdapter[/queue/d41d8cd98f00b204e9800998ecf8427e/5.5.1] | org.apache.= activemq.broker.BrokerService | main > 2012-02-08 10:24:27,421 | INFO =A0| ActiveMQ 5.5.1 JMS Message Broker (mm= userb2) is starting | org.apache.activemq.broker.BrokerService | main > 2012-02-08 10:24:27,421 | INFO =A0| For help or more information please s= ee: http://activemq.apache.org/ | org.apache.activemq.broker.BrokerService = | main > 2012-02-08 10:24:27,566 | INFO =A0| Scheduler using directory: activemq-d= ata/mmuserb2/scheduler | org.apache.activemq.broker.scheduler.SchedulerBrok= er | main > 2012-02-08 10:24:27,668 | INFO =A0| JobSchedulerStore:activemq-data/mmuse= rb2/scheduler started | org.apache.activemq.broker.scheduler.JobSchedulerSt= ore | main > > Thanks > > Josh > > --=20 http://fusesource.com http://blog.garytully.com