activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: How to make sure a message is fully sent/transferred.
Date Mon, 10 Oct 2011 11:56:21 GMT
for stomp, you need to ask for a receipt, see the receipt header.
http://stomp.github.com/stomp-specification-1.0.html#header-receipt

On 5 October 2011 20:36, manua <agarwal.manu@gmail.com> wrote:
> Hi,
>
> I am using a perl consumer and for the message, building my own frame, as,
>
> my %head;
> $head{destination} = "/queue/Test.Request.Q";
>
> $request{message} = "Test Message";
> $request{sequence_no} = 1;
>
> my $frame= Net::Stomp::Frame->new(
>        { command => "SEND", headers => \%head, body =>  to_json(\%request)
});
> $stmp->send_frame($frame);
>
> After sending the frame, i am calling another process using exec( ).
> It looks that sometimes, exec is called before the message is fully
> transmitted.
> How can I make sure the message is send/transmitted before calling the exec
> process.
>
> Let me know your inputs.
>
> Thanks
> Manu
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/How-to-make-sure-a-message-is-fully-sent-transferred-tp3875907p3875907.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://fusesource.com
http://blog.garytully.com

Mime
View raw message