activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger Hoover <roger.hoo...@gmail.com>
Subject AMQ 5.2 no longer sets persistent header for STOMP
Date Tue, 28 Apr 2009 05:48:31 GMT
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();

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message