in reply to Stomp time out error

You probably don't want to wait for 120 minutes. Use something more reasonable like 5 seconds:
#!/usr/bin/perl use strict; use warnings; use Net::Stomp; my $stomp = Net::Stomp->new({ hostname => 'localhost', port => '61613' + }); $stomp->connect({ login => 'user', passcode => 'passcode' }); $stomp->subscribe( { destination => '/queue/foo', 'ack' => 'client', 'activemq.prefetchSize' => 1 } ); my $frame = $stomp->receive_frame; warn $frame->body; my $can_read = $stomp->can_read({ timeout => 5 }); $stomp->ack({ frame => $frame }); $stomp->disconnect;

Replies are listed 'Best First'.
Re^2: Stomp time out error
by magarwal (Novice) on Jun 24, 2010 at 13:02 UTC
    Thanks for your reply.

    My issue is that, I want to keep my programming running, infinitely and only at intervals of 120 min., it should send the message. So, I need someway to send message after every 120 min. or more, without time out.

    Please let me know your inputs.

    Thanks,
    Manu