Hi,

In AMQ 4.1, if a message is persistent, the broker will pass a 'persistent'
header with value 'true' when a message is consumed from a queue.  This is
no longer the case in AMQ 5.2.  Is this a bug or a purposeful decision?

Thanks,

Roger


#!/usr/bin/env perl

use strict;
use Net::Stomp;
use Data::Dumper;

my $stomp = Net::Stomp->new( { 'hostname' => 'localhost', 'port' => '61613'
} );
$stomp->connect( { 'login' => 'hello', 'passcode' => 'there' } );

$stomp->send({ 'destination' => '/queue/testPersistence', 'body' => 'test',
'persistent' => 'true' } );

$stomp->subscribe(
  {   'destination'             => '/queue/testPersistence',
      'ack'                   => 'client',
      'activemq.prefetchSize' => 1
  }
);
my $frame = $stomp->receive_frame();
$stomp->ack({'frame' => $frame});
print "Received frame: " . Dumper($frame);
$stomp->disconnect();

Reply via email to