Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 40610 invoked from network); 16 Aug 2010 12:24:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Aug 2010 12:24:14 -0000 Received: (qmail 69013 invoked by uid 500); 16 Aug 2010 12:24:13 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 68708 invoked by uid 500); 16 Aug 2010 12:24:10 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 68700 invoked by uid 99); 16 Aug 2010 12:24:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 12:24:09 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=10.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rafaels@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 12:24:01 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7GCNdBT015074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 16 Aug 2010 08:23:39 -0400 Received: from proxima.bos.redhat.com (proxima.bos.redhat.com [10.16.16.61]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7GCNd1q019321 for ; Mon, 16 Aug 2010 08:23:39 -0400 Message-ID: <4C692DCA.9050408@redhat.com> Date: Mon, 16 Aug 2010 08:23:38 -0400 From: Rafael Schloming User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: How to handle sync call by QPID Java api? References: <1281861512354-5424823.post@n2.nabble.com> In-Reply-To: <1281861512354-5424823.post@n2.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-Virus-Checked: Checked by ClamAV on apache.org zhaoyi0113@gmail.com wrote: > I am new to QPID. I am using Java broker and want to setup a sync message > call between server and client. I use this API to send message: > > session.messageTransfer("amq.direct", MessageAcceptMode.EXPLICIT, > MessageAcquireMode.PRE_ACQUIRED, header, > "Message5 " + i); > > I want to wait for server reply. How can I do this in Java-QPID? What language is your client using? Assuming that's Java, then you would invoke sync after invoking messageTransfer: session.messageTransfer(...); session.sync(); --Rafael --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org