Ah, I missed that. I guess that relates to this part of the docs?<br><br><pre class="sourcecode">channel.basicPublish(<b>exchangeName</b>, <b>routingKey</b>,<br>                     MessageProperties.PERSISTENT_TEXT_PLAIN,<br>
                     messageBodyBytes);</pre><br><pre class="sourcecode">channel.basicPublish(<b>exchangeName</b>, <b>routingKey</b>,<br>                     <b>new</b> AMQP.BasicProperties<br>                       (contentType, contentEncoding, headers, deliveryMode,<br>
                        priority, correlationId, replyTo, expiration,<br>                        messageId, timestamp, type, userId,<br>                        appId, clusterId),<br>                     messageBodyBytes);</pre>
<br>Let me try that, thanks for pointing that out.<br><br>Cheers, Jacek<br><br><br><div class="gmail_quote">On Wed, Apr 22, 2009 at 9:11 AM, Alexis Richardson <span dir="ltr">&lt;<a href="mailto:alexis.richardson@gmail.com">alexis.richardson@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Jacek,<br>
<br>
Is your requirement:<br>
<br>
1. to persist messages on disk so that you do not lose them in a crash?<br>
2. to remove messages from memory when they are stored on disk?<br>
<br>
RabbitMQ already does 1. �If you make your messages persistent, they<br>
are stored *both* in memory *and* on disk.<br>
<br>
As Matthias mentioned, we are working on 2, which is needed in some situations.<br>
<br>
alexis<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Wed, Apr 22, 2009 at 1:01 PM, Matthias Radestock &lt;<a href="mailto:matthias@lshift.net">matthias@lshift.net</a>&gt; wrote:<br>
&gt; Jacek,<br>
&gt;<br>
&gt; Jacek wrote:<br>
&gt;&gt; Understand. Is it just a matter of switching from RAM to disk-based tables in<br>
&gt;&gt; Mnesia?<br>
&gt;<br>
&gt; Mnesia is only used for routing and config information. It&#39;s not<br>
&gt; designed to handle the kind of access patterns and volumes required for<br>
&gt; message storage.<br>
&gt;<br>
&gt;&gt; If you could enhance it to<br>
&gt;&gt; start backing up at least some of the queued up messages to disk to ensure<br>
&gt;&gt; reliability it would go a long way for us.<br>
&gt;<br>
&gt; Understood. We are working on that, but it&#39;s a complex piece of work and<br>
&gt; hence will take a while.<br>
&gt;<br>
&gt;<br>
&gt; Matthias.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rabbitmq-discuss mailing list<br>
&gt; <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
&gt; <a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
&gt;<br>
</blockquote></div><br>