From users-return-29026-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Thu Oct 6 06:28:50 2011 Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89BD678DE for ; Thu, 6 Oct 2011 06:28:50 +0000 (UTC) Received: (qmail 78562 invoked by uid 500); 6 Oct 2011 06:28:50 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 78507 invoked by uid 500); 6 Oct 2011 06:28:50 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 78498 invoked by uid 99); 6 Oct 2011 06:28:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 06:28:50 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.215.171 as permitted sender) Received: from [209.85.215.171] (HELO mail-ey0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 06:28:44 +0000 Received: by eyd10 with SMTP id 10so1407540eyd.2 for ; Wed, 05 Oct 2011 23:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=8v6bcUHLTwvU1/idBqHu/d8Xq0fXqq+/duVjK6eR1X0=; b=gvQZzxm2KbKSqNBKuNacQ2noZ1ysASzhs/yHiQbeFR0o43/uadDzqYTr6C9taJKc8o ApY1aN1o3YESQfWaU9jUlCfFNOAN3PfyIP9PGMx4TwravZY4BkFuW4pcD+U98mqXKpmK OnpXcO+yf/Q/akgZJIhEdkiZRDqS4aLCEU33s= Received: by 10.213.32.139 with SMTP id c11mr2184562ebd.9.1317882504127; Wed, 05 Oct 2011 23:28:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.26.66 with HTTP; Wed, 5 Oct 2011 23:28:04 -0700 (PDT) In-Reply-To: <1317843399814-3875907.post@n4.nabble.com> References: <1317843399814-3875907.post@n4.nabble.com> From: Claus Ibsen Date: Thu, 6 Oct 2011 08:28:04 +0200 Message-ID: Subject: Re: How to make sure a message is fully sent/transferred. To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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 wrote: > Hi, > > I am using a perl consumer and for the message, building my own frame, as= , > > my %head; > $head{destination} =3D "/queue/Test.Request.Q"; > > $request{message} =3D "Test Message"; > $request{sequence_no} =3D 1; > > my $frame=3D Net::Stomp::Frame->new( > =A0 =A0 =A0 =A0{ command =3D> "SEND", headers =3D> \%head, body =3D> =A0t= o_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 ex= ec > process. > > Let me know your inputs. > > Thanks > Manu > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/How-t= o-make-sure-a-message-is-fully-sent-transferred-tp3875907p3875907.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --=20 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/