I was able to change the dataDirectory programatically through : broker.setDataDirectory("SomeDirectory"); Still, why does it create a data directory for JDBC persistence, is it to store temporary messages ?
-Navin On Fri, Aug 27, 2010 at 2:59 PM, Navin Naidu <navinmna...@gmail.com> wrote: > I am using JDBC persistence with apache derby. When I start the broker, it > creates the required three tables in the db, along with that it also creates > "activemq- > data" directory. Even if I try to configure the uri: "tcp:// > 0.0.0.0:61616?broker.dataDirectory=SomeDirectory<http://0.0.0.0:61616/?broker.dataDirectory=SomeDirectory>", > it still goes ahead and creates "activemq-data" directory, but does not > create "SomeDirectory". Will "activemq-data" directory always be created to > store some temporary cache messages ? > > > -Navin > > INFO: Listening for connections at: > tcp://BAN4NNAIDU-L1:61616?broker.dataDirectory=SomeDirectory > Aug 27, 2010 2:49:37 PM org.apache.activemq.broker.TransportConnector start > INFO: *Connector > tcp://BAN4NNAIDU-L1:61616?broker.dataDirectory=SomeDirectory Started* > Aug 27, 2010 2:49:37 PM org.apache.activemq.broker.BrokerService start > INFO: ActiveMQ JMS Message Broker (localhost, > ID:BAN4NNAIDU-L1-1754-1282900777363-0:0) started > > > On Fri, Aug 27, 2010 at 2:04 PM, Gary Tully <gary.tu...@gmail.com> wrote: > >> ah ok, it is not obvious, vm url needs to be of the form: >> vm://localhost?brokerConfig=properties: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=markup >> >> On 26 August 2010 20:02, fachhoch <fachh...@gmail.com> wrote: >> > >> > I tried reading that, I did not get it , also there are no examples , I >> > tried this >> > >> > >> > <bean id="jmsConnectionFactory" >> > class="org.apache.activemq.ActiveMQConnectionFactory" > >> > <property name="brokerURL" >> > value="vm://localhost?properties=/foo.bar.properties"/> >> > </bean> >> > >> > ended up with exception >> > >> > Caused by: javax.jms.JMSException: Could not create Transport. Reason: >> > java.lang.IllegalArgumentException: Invalid connect parameters: >> > {properties=/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 <fachh...@gmail.com> wrote: >> >>> >> >>> is it possible to do with a property file? as we have to deploy in >> >>> different >> >>> servers and each server will have its own location , please suggest >> me >> >>> . >> >>> >> >>> Gary Tully wrote: >> >>>> >> >>>> "vm://localhost?broker.dataDirectory=SomeDirectory" should do it. >> >>>> see: http://activemq.apache.org/broker-configuration-uri.html for >> some >> >>>> more detail and alternatives >> >>>> >> >>>> On 26 August 2010 15:27, fachhoch <fachh...@gmail.com> wrote: >> >>>>> >> >>>>> >> >>>>> Please suggest me how can I specify 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: >> >>>>>>>> >> >>>>>>>> I did not onfigure anything for broker, just in my connection >> >>>>>>>> configration I specified broker url as vm:localhost in this >> case >> >>>>>>>> activemq should use defualt store , what is the default file >> >>>>>>>> store >> >>>>>>>> location ? >> >>>>>>>> >> >>>>>>> here is my configration >> >>>>>>> >> >>>>>>> >> >>>>>>> <bean id="jmsConnectionFactory" >> >>>>>>> class="org.apache.activemq.ActiveMQConnectionFactory" > >> >>>>>>> <property name="brokerURL" value="vm://localhost"/> >> >>>>>>> </bean> >> >>>>>>> and I did not set any property like activemq-data , in this case >> >>>>>>> where >> >>>>>>> would activemq place store files ? >> >>>>>>> >> >>>>>>> >> >>>>>>> -- >> >>>>>>> View this message in context: >> >>>>>>> >> http://old.nabble.com/default-file--store-location-tp28977817p28982876.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-tp28977817p29542981.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-tp28977817p29543368.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 >> > > > > -- > Thanks & Regards, > > - NMN > -- Thanks & Regards, - NMN