activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: How to make sure a message is fully sent/transferred.
Date Thu, 06 Oct 2011 06:28:04 GMT
Hi

You could disable asyncSend on the client connection
http://activemq.apache.org/async-sends.html



On Wed, Oct 5, 2011 at 9:36 PM, 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.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message