You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Minh Tu Duong <mi...@maas.de> on 2008/08/01 16:24:37 UTC

Re: Lost message queue when stoping and restarting Embedded ActiveMQ

i am using this persistence Adaptor and it works:

        <persistenceAdapter>
            <amqPersistenceAdapter syncOnWrite="false" directory="data" 
maxFileLength="20 mb"/>
        </persistenceAdapter>
when you send message, you have to set
        producer.setDeliveryMode(DeliveryMode.PERSISTENT);

best regards

Tung.Nguyen schrieb:
> Hi Job,
>
> In fact, all queues are deleted when stopping and re-starting embedded
> ActiveMQ.
>
> I mistake when i copied and pasted from code...
> 		<persistenceAdapter>
> 			<journaledJDBC journalLogFiles="5"  dataDirectory="${activemq.base}"
> createTablesOnStartup="false"/>
> 		</persistenceAdapter>
>
>
> Joe Fernandez wrote:
>   
>> Do the queues disappear or the messages in the queues?
>> What delivery mode is your producer using?
>>
>> BTW in your broker configuration below, you start a comment w/in the
>> <persistenceAdapter> element, but you don't end it properly. 
>>
>> <persistenceAdapter>
>>    <!--
>>      ... 
>>
>> Joe
>> www.ttmsolutions.com
>>  
>>
>>     
>
>
> -----
> What's going on?
>   


Re: Lost message queue when stoping and restarting Embedded ActiveMQ

Posted by "Tung.Nguyen" <tu...@yahoo.com>.
Yes, you are right.
It works now when i send message with deliverymode=Persistent :drunk:
Thanks very much,


Minh Tu Duong wrote:
> 
> i am using this persistence Adaptor and it works:
> 
>         <persistenceAdapter>
>             <amqPersistenceAdapter syncOnWrite="false" directory="data" 
> maxFileLength="20 mb"/>
>         </persistenceAdapter>
> when you send message, you have to set
>         producer.setDeliveryMode(DeliveryMode.PERSISTENT);
> 
> best regards
> 
> 


-----
What's going on?
-- 
View this message in context: http://www.nabble.com/Lost-message-queue-when-stoping-and-restarting-Embedded-ActiveMQ-tp18727598p18785178.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.