Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 75458 invoked from network); 6 Dec 2010 19:02:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Dec 2010 19:02:56 -0000 Received: (qmail 66121 invoked by uid 500); 6 Dec 2010 19:02:56 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 66082 invoked by uid 500); 6 Dec 2010 19:02:56 -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 66074 invoked by uid 99); 6 Dec 2010 19:02:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 19:02:56 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.85.173.253] (HELO server.dankulp.com) (64.85.173.253) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 19:02:49 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id 4716418727F; Mon, 6 Dec 2010 14:02:29 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter-dev@cxf.apache.org.mJTFZwlJWb Received: from dilbert.dankulp.com (c-24-91-72-253.hsd1.ma.comcast.net [24.91.72.253]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTPSA id 2D72318727F; Mon, 6 Dec 2010 14:02:28 -0500 (EST) From: Daniel Kulp To: dev@cxf.apache.org Subject: Re: Two way requests can get ahead of oneway requests ? Date: Mon, 6 Dec 2010 14:02:52 -0500 User-Agent: KMail/1.13.5 (Linux/2.6.36; KDE/4.5.3; x86_64; ; ) Cc: Sergey Beryozkin References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201012061402.52832.dkulp@apache.org> X-Old-Spam-Status: No, score=-102.9 required=3.0 tests=ALL_TRUSTED,BAYES_00, SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.3.1 On Sunday 05 December 2010 9:26:11 am Sergey Beryozkin wrote: > Hi > > I've noticed, while working on my demo, that if a proxy executes two > operations, with the 1st one being a oneway operation, then sometimes the > server sees the 2nd operation being invoked first. > > I can see why it is happening and obviously the server code should not make > any assumptions in this case, but can CXF at least make the best effort, > perhaps by increasing the priority of the server threads dealing with the > actual execution of oneway requests ? I was thinking about a possible sync on the runnable, stick it on the executor, then a wait(10) with the background thread doing a notifyAll once it starts. If the executor is not busy/full, then that should allow it to continue without tieing up the Jetty/servlet thread for very long. If the executors are busy, it will return FAIRLY quick. Possibly make that configurable. Dan > > Thoughts ? > > Sergey -- Daniel Kulp dkulp@apache.org http://dankulp.com/blog