Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F1591086C for ; Mon, 17 Feb 2014 09:15:07 +0000 (UTC) Received: (qmail 3226 invoked by uid 500); 17 Feb 2014 09:15:06 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 2743 invoked by uid 500); 17 Feb 2014 09:15:00 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 2735 invoked by uid 99); 17 Feb 2014 09:14:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Feb 2014 09:14:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elakito@gmail.com designates 209.85.160.41 as permitted sender) Received: from [209.85.160.41] (HELO mail-pb0-f41.google.com) (209.85.160.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Feb 2014 09:14:52 +0000 Received: by mail-pb0-f41.google.com with SMTP id up15so15165002pbc.28 for ; Mon, 17 Feb 2014 01:14:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9RGQxftNSWkYJYA/ZXV1jlCbQshWOC4fsC0e6UsZTF0=; b=GTeG5Zw+v46vfhN2GA0OxOoaF6odeA+IzjxtVm+c7gpxmk0nzsjz7W+uqR4cNoQNSE QJnRFtvfzjzxAp4SBfygdHLQNoYHFA4bnXyCPXtCMicD7ST3tjwBXcPvHqyuuIMnX85c ms+lMT/pG+3Nim+q0hsJHaFs8rUIbDOI4GaIxp/0TkyCPGLwFXpVVDLpRMWI1C0dLcj4 3tDlJfYXWeQV0j7jW4hL6B7VBpkMSBkaGGLxGfxbmp+7YKjQoLnvaapO08GxmLY5APT/ 5ntQGJHtAR6A5NbBmn+Yi2IgW6QlJ+VPY8mp6voBPajJqgjN/YeVVd6BHKYsHbhkvSAI aPMw== MIME-Version: 1.0 X-Received: by 10.68.236.9 with SMTP id uq9mr25563482pbc.10.1392628472213; Mon, 17 Feb 2014 01:14:32 -0800 (PST) Received: by 10.68.151.40 with HTTP; Mon, 17 Feb 2014 01:14:32 -0800 (PST) In-Reply-To: <52FDC28D.1040001@sosnoski.com> References: <52FDC28D.1040001@sosnoski.com> Date: Mon, 17 Feb 2014 10:14:32 +0100 Message-ID: Subject: Re: WS-RM client callback property From: Aki Yoshida To: dev@cxf.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Dennis, right. It would be useful to make some information conveniently available to the calling client. But we might want to provide a callback not just for getting the ack status but for getting various other WS-RM information such as the sequence ID, message number and even some control over the messages and sequences it created? Or I am not sure if we should give the sequence info back in the callback and let the client use jmx to get more info and exercise control over the sequence? regards, aki 2014-02-14 8:15 GMT+01:00 Dennis Sosnoski : > It's important for clients using WS-RM to know when all the messages they've > sent have been acknowledged, because it's not safe for them to terminate > until this has been done. Right now we're able to use JMX to monitor > WS-ReliableMessaging operation and see when messages are acknowledged. But > this seems overly complex to me, and I'm thinking of adding a simpler > callback mechanism to make it easier. > > The basic interface would be something like: > > interface AcknowledgementCallback { > void messageAcknowledged(); > } > > I could also supply an AcknowledgementCountingCallback implementation which > would just count how many times it's been called, and define a waitFor(n, > timeout) method on this which would wait until that many messages had been > acknowledged (or until timed out). That way an instance could be set as a > client property, and the user could just count how many messages they'd sent > and when they're done call the waitFor() method to make sure they'd all been > received before the application terminates. > > Any objections or better ideas? > > Thanks, > > - Dennis > > Dennis M. Sosnoski > Java Web Services Consulting > CXF and Web Services Security Training > > Web Services Jump-Start >