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 925EE10D77 for ; Mon, 2 Sep 2013 23:06:38 +0000 (UTC) Received: (qmail 46248 invoked by uid 500); 2 Sep 2013 23:06:38 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 46188 invoked by uid 500); 2 Sep 2013 23:06:38 -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 46180 invoked by uid 99); 2 Sep 2013 23:06:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Sep 2013 23:06:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [209.85.220.48] (HELO mail-pa0-f48.google.com) (209.85.220.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Sep 2013 23:06:33 +0000 Received: by mail-pa0-f48.google.com with SMTP id kp13so5639973pab.21 for ; Mon, 02 Sep 2013 16:05:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=K/h6hTmG/Gcd1QsnOy492RO/W309qG3RmI8MAZNtMA8=; b=JGrt0ibF60XM2npR/G1J5HIc2UjaDH4IP+K7YQCrcyeggNquRjAjHOUWDLzU0E4RF9 WXDIsViacZYjWc9VFUeLVje9KYZNSudl/Yh9G+96I540YECGoCAfHzp525CkjzMpsmRv 1jSYvYJNhcKiOdJJEg3lYz6FUz61neSQUYf0N3IJmL1/U2yg608+nUiIT/gPvMnks6QY MwjBFHeOUptYYQlNhQSKcjMxHuoM+bKaUkt0LPtTLOy/nGc9jgYHdYFK1c4yBH6ewvwP zfJfD0T94adFYKkfx/kvp089UyuMfp7VjLNaqgii14atfNMvz4QGRcMibaHbwaMIPdkl EEqQ== X-Gm-Message-State: ALoCoQnyII467CnFhH74ttL2Gt5FDTpseDCw+VQxn08sBDUYOJKhidVb/+UHfFT1LI0EGGBqRONx X-Received: by 10.68.136.7 with SMTP id pw7mr27526625pbb.106.1378163151906; Mon, 02 Sep 2013 16:05:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.216.69 with HTTP; Mon, 2 Sep 2013 16:05:30 -0700 (PDT) X-Originating-IP: [128.127.35.152] In-Reply-To: <522507E5.1000403@sosnoski.com> References: <5222C66F.6060701@sosnoski.com> <66877807-C284-4C45-B6BC-345E098C2278@apache.org> <522507E5.1000403@sosnoski.com> From: John Li Date: Tue, 3 Sep 2013 01:05:30 +0200 Message-ID: Subject: Re: Changing WS-RM default to terminate on shutdown To: dev@cxf.apache.org Content-Type: multipart/alternative; boundary=047d7b15a9d31cc30f04e56e9d78 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b15a9d31cc30f04e56e9d78 Content-Type: text/plain; charset=ISO-8859-1 hi all, I would also think it logical that the client by default will sent a terminate sequence on normal shutdown since it cleans up the resources. In the case that the client crashes unexpectedly it should pick up from where it ended. Regarding relying on maxSequence might cause problems with clients that are heavily relying on 'inOrder' delivery. During a pilot we have set this sequence to 10 and we have seen that in some cases message 11 was handled by the server before message 10. Since inOrder is only working within the same sequence and message 11 was sent with a new sequence this seems to be 'as designed'. Maybe a bit of topic but wanted to mention this while you guys are looking into the terminate sequence. regards, John On Mon, Sep 2, 2013 at 11:49 PM, Dennis Sosnoski wrote: > On 09/03/2013 02:48 AM, Aki Yoshida wrote: > >> ... >> >> >> I think, as long as the client either terminates each unused old >> sequence or keeps reusing the old sequence, it is well behaved. In >> contrast, when the client keeps creating a new sequence and never >> terminates those sequences, it's a bad client for himself and for the >> communicating server. >> > > That's exactly the situation we have now, in the case where a client is > executed without persistent storage. Even with persistent storage, if the > client only runs periodically it's a bad practice to keep the same sequence > around. > > Relying on expires is also not a great idea in general, since this is an > optional setting that's only controlled by the CXF custom configuration. > > - Dennis > --047d7b15a9d31cc30f04e56e9d78--