[rabbitmq-discuss] Help with persistence using RabbitMQ?
iceblaze at gmail.com
Tue Apr 3 17:22:16 BST 2012
Thanks for attempting to assist me here. I have made a light version of the
module and a sender script as you requested. You can find the files here:
Simply unzip the files into the same directory and run the "sender.pl"
script. Note that you will need to install Net::RabbitMQ from CPAN. You can
also modify the login credentials for rabbit (right now its just using
guest/guest) in $self of Rabbit.pm's new() function:
my $self =
_rabbit => Net::RabbitMQ->new(),
_rabbit_user => "guest",
_rabbit_pass => "guest",
_rabbit_host => "localhost",
_rabbit_port => 5672,
_queue => $queue,
_channel => $channel,
_no_ack => $no_ack,
_queue_declared => '',
On Tue, Apr 3, 2012 at 5:30 AM, Marek Majkowski <majek04 at gmail.com> wrote:
> On Tue, Apr 3, 2012 at 00:01, iceblaze <iceblaze at gmail.com> wrote:
> > I seem to be having problems with persistence using RabbitMQ, and I was
> > wondering if someone would help point out what I'm missing?
> > For example, http://pastebin.com/PRRHx5hF
> > I run the "send" function 20 times to fill the queue with 20 messages,
> > I run rabbitmqadmin list queues, and after /etc/init.d/rabbitmq-server
> > restart. Finally. I run rabbitmqadmin list queues again and as you can
> > the queue and exchange persist, but the messages are lost.
> > I can provide any other information if necessary.
> I can't spot any obvious issue. I'm not a perl expert - could
> you supply me with a runnable script that sends messages?
> (and clear instructions how to run it)
"Of course, the actual government of any computer is run by that fascist
dictator known as the operating system. But a wise dictator knows when to
let the people think they're capitalists--and when to let them think
they're communists." - Programming Perl third edition
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss