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"><<a href="mailto:alexis.richardson@gmail.com">alexis.richardson@gmail.com</a>></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 <<a href="mailto:matthias@lshift.net">matthias@lshift.net</a>> wrote:<br>
> Jacek,<br>
><br>
> Jacek wrote:<br>
>> Understand. Is it just a matter of switching from RAM to disk-based tables in<br>
>> Mnesia?<br>
><br>
> Mnesia is only used for routing and config information. It's not<br>
> designed to handle the kind of access patterns and volumes required for<br>
> message storage.<br>
><br>
>> If you could enhance it to<br>
>> start backing up at least some of the queued up messages to disk to ensure<br>
>> reliability it would go a long way for us.<br>
><br>
> Understood. We are working on that, but it's a complex piece of work and<br>
> hence will take a while.<br>
><br>
><br>
> Matthias.<br>
><br>
> _______________________________________________<br>
> rabbitmq-discuss mailing list<br>
> <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
> <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>
><br>
</blockquote></div><br>