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?

Reply via email to