activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: default file store location
Date Fri, 27 Aug 2010 15:06:51 GMT
the property has to match the setter on BrokerService.
so it would be dataDirectory=...

On 27 August 2010 15:45, fachhoch <fachhoch@gmail.com> wrote:
>
> I added broker.properties  file
>
> and   contains
> activemq-data=e://dev//jms-dump
>
> started the application sent messages and checked the directory
> e://dev//jms-dump  did not find anything  inside  , please tell me  what is
> wrong ?
>
>
>
>
>
>
>
> Gary Tully 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 <fachhoch@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 <fachhoch@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 <fachhoch@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
>>
>>
>
> --
> View this message in context: http://old.nabble.com/default-file--store-location-tp28977817p29553346.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>



-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Mime
View raw message