Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 80353 invoked from network); 27 Aug 2010 15:07:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Aug 2010 15:07:19 -0000 Received: (qmail 451 invoked by uid 500); 27 Aug 2010 15:07:19 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 296 invoked by uid 500); 27 Aug 2010 15:07:18 -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 288 invoked by uid 99); 27 Aug 2010 15:07:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Aug 2010 15:07:18 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@gmail.com designates 209.85.216.178 as permitted sender) Received: from [209.85.216.178] (HELO mail-qy0-f178.google.com) (209.85.216.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Aug 2010 15:07:14 +0000 Received: by qyk34 with SMTP id 34so3595161qyk.2 for ; Fri, 27 Aug 2010 08:06:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=IrIz+rAdm+iu67IqCSpZq9M1qfItdwwswJiiTPBynHk=; b=kHkmJgsdj4g6OQtQ/+V13qtffaVmJgZW1R7QneIROTbaX0yyAO0lL+/OOaccZjH4bJ 79jfCp4P/maKPvUJjSbh7gcCrzseYbeeXSwMBtQTPoorPT8kv73xyI7lilj1vVR9vAIn Exx3i7A8UfoMncs4aNKcdncVmu00+vkADbBks= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=LNqeC7PwfwsboIldGhDqL2TB5n1flcMzfqILZMsc0LXxA+t8RggMK6k/R+jNHkMo01 PuwMsBLTt67hQzMEYwyfKbzoplL0+pGgNQsxsFupEvn8FV9she0rg9UAGsjQVPdXbVRm QXPcfLKp3/qcjF6Vm/yqnZj0d5+38sbpA+0hQ= MIME-Version: 1.0 Received: by 10.229.192.13 with SMTP id do13mr617453qcb.30.1282921611692; Fri, 27 Aug 2010 08:06:51 -0700 (PDT) Received: by 10.229.249.134 with HTTP; Fri, 27 Aug 2010 08:06:51 -0700 (PDT) In-Reply-To: <29553346.post@talk.nabble.com> References: <28977817.post@talk.nabble.com> <28982876.post@talk.nabble.com> <29542981.post@talk.nabble.com> <29543368.post@talk.nabble.com> <29545863.post@talk.nabble.com> <29553346.post@talk.nabble.com> Date: Fri, 27 Aug 2010 16:06:51 +0100 Message-ID: Subject: Re: default file store location From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable the property has to match the setter on BrokerService. so it would be dataDirectory=3D... On 27 August 2010 15:45, fachhoch wrote: > > I added broker.properties =A0file > > and =A0 contains > activemq-data=3De://dev//jms-dump > > started the application sent messages and checked the directory > e://dev//jms-dump =A0did not find anything =A0inside =A0, please tell me = =A0what is > wrong ? > > > > > > > > Gary Tully wrote: >> >> ah ok, it is not obvious, vm url needs to be of the form: >> vm://localhost?brokerConfig=3Dproperties:config/broker.properties >> >> I added a test that validates same and can serve as an example : >> http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/= org/apache/activemq/config/BrokerPropertiesTest.java?view=3Dmarkup >> >> On 26 August 2010 20:02, fachhoch wrote: >>> >>> I tried reading that, =A0I did not get it , also there are no examples = , I >>> tried this >>> >>> >>> =A0 =A0 =A0 =A0>> class=3D"org.apache.activemq.ActiveMQConnectionFactory" =A0> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0>> value=3D"vm://localhost?properties=3D/foo.bar.properties"/> >>> =A0 =A0 =A0 =A0 >>> >>> ended up =A0with exception >>> >>> Caused by: javax.jms.JMSException: Could not create Transport. Reason: >>> java.lang.IllegalArgumentException: Invalid connect parameters: >>> {properties=3D/foo.bar.properties} >>> >>> please tell me how to provide property file location . >>> >>> >>> >>> Gary Tully wrote: >>>> >>>> yes, please have a read of >>>> http://activemq.apache.org/broker-properties-uri.html >>>> >>>> On 26 August 2010 16:01, fachhoch wrote: >>>>> >>>>> is it possible to do with a property file? as we have to deploy in >>>>> different >>>>> servers and each server will have its =A0own location =A0, please sug= gest >>>>> me >>>>> . >>>>> >>>>> Gary Tully wrote: >>>>>> >>>>>> "vm://localhost?broker.dataDirectory=3DSomeDirectory" should do it. >>>>>> see: http://activemq.apache.org/broker-configuration-uri.html for so= me >>>>>> more detail and alternatives >>>>>> >>>>>> On 26 August 2010 15:27, fachhoch wrote: >>>>>>> >>>>>>> >>>>>>> Please suggest me how can I specify =A0 value for property >>>>>>> "activemq-data" >>>>>>> >>>>>>> >>>>>>> rajdavies wrote: >>>>>>>> >>>>>>>> In the current working directory of your application - under a >>>>>>>> directory >>>>>>>> called activemq-data >>>>>>>> >>>>>>>> cheers, >>>>>>>> >>>>>>>> Rob >>>>>>>> >>>>>>>> Rob Davies >>>>>>>> follow me: http://twitter.com/rajdavies >>>>>>>> I work here: http://fusesource.com >>>>>>>> My Blog: http://rajdavies.blogspot.com/ >>>>>>>> I wrote this: http://www.manning.com/snyder/ >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On 24 Jun 2010, at 15:07, fachhoch wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> fachhoch wrote: >>>>>>>>>> >>>>>>>>>> =A0I did not onfigure anything for broker, just in my connection >>>>>>>>>> configration I specified =A0broker url as vm:localhost =A0 in th= is >>>>>>>>>> case >>>>>>>>>> activemq =A0should use defualt =A0 store , what is the default = =A0file >>>>>>>>>> store >>>>>>>>>> location ? >>>>>>>>>> >>>>>>>>> here is my configration >>>>>>>>> >>>>>>>>> >>>>>>>>> =A0 =A0 =A0>>>>>>>> class=3D"org.apache.activemq.ActiveMQConnectionFactory" =A0> >>>>>>>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 >>>>>>>>> =A0 =A0 =A0 >>>>>>>>> and I did not set any =A0property like activemq-data , in this ca= se >>>>>>>>> where >>>>>>>>> would activemq =A0place store files ? >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> View this message in context: >>>>>>>>> http://old.nabble.com/default-file--store-location-tp28977817p289= 82876.html >>>>>>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> -- >>>>>>> View this message in context: >>>>>>> http://old.nabble.com/default-file--store-location-tp28977817p29542= 981.html >>>>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> http://blog.garytully.com >>>>>> >>>>>> Open Source Integration >>>>>> http://fusesource.com >>>>>> >>>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://old.nabble.com/default-file--store-location-tp28977817p2954336= 8.html >>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> http://blog.garytully.com >>>> >>>> Open Source Integration >>>> http://fusesource.com >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/default-file--store-location-tp28977817p29545863.= html >>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> http://blog.garytully.com >> >> Open Source Integration >> http://fusesource.com >> >> > > -- > View this message in context: http://old.nabble.com/default-file--store-l= ocation-tp28977817p29553346.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > --=20 http://blog.garytully.com Open Source Integration http://fusesource.com