Plack and RabbitMQ - AnyEvent::RabbitMQ

50 views
Skip to first unread message

Frank Mastronardi

unread,
Sep 13, 2012, 9:30:44 AM9/13/12
to psgi-...@googlegroups.com
Subject: Plack and RabbitMQ -  AnyEvent::RabbitMQ 

Hi,

I have a problem not sure if its Plack or something else.  All this is running on the same server.
I make an http call it works the first time then after that Plack and RabbitMQ are in a state where the http/script don't work anymore.
I have to restart the micro cloud to get it to work again.

The same Perl script works from the command line every time.

The app pushes a message on the queue then exists.
Its a Perl script using AnyEvent::RabbitMQ.  I am having good results w/ AnyEvent::RabbitMQ 
so far.  I define the channel etc if  its not there, push the message, then quit.

I get 
Can't call method "declare_exchange" on an undefined value at /app/app/perl/jm002r.pl line 142.
which most likely from
my $ch;
$ar->open_channel( ...
not working.

then the "$ch->declare_exchange(.." not working.

I can send the pl script and the output I see in the browser from Plack if you like.

TIA
FxM

Reply all
Reply to author
Forward
0 new messages