Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 94974 invoked from network); 11 Mar 2009 21:20:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2009 21:20:58 -0000 Received: (qmail 99837 invoked by uid 500); 11 Mar 2009 21:20:55 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 99797 invoked by uid 500); 11 Mar 2009 21:20:55 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 99786 invoked by uid 99); 11 Mar 2009 21:20:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 14:20:55 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.79.199.57] (HELO server.dankulp.com) (64.79.199.57) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 21:20:47 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id 88CED197C3C2; Wed, 11 Mar 2009 17:20:26 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.2.5-gr0 (2008-06-10) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter.cP8NJ3cBZB Received: from dilbert.localnet (c-24-91-141-225.hsd1.ma.comcast.net [24.91.141.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTP id D5571197C2C6; Wed, 11 Mar 2009 17:20:16 -0400 (EDT) From: Daniel Kulp To: users@cxf.apache.org Subject: Re: My XFire/CXF saga Date: Wed, 11 Mar 2009 17:20:14 -0400 User-Agent: KMail/1.11.1 (Linux/2.6.28-gentoo-r3; KDE/4.2.1; x86_64; ; ) Cc: Benson Margulies References: <49B796B9.9060306@shazamteam.com> <49B7CDFD.6060108@shazamteam.com> <61b5d9410903110749x52e545f7if825d2136a9be2f5@mail.gmail.com> In-Reply-To: <61b5d9410903110749x52e545f7if825d2136a9be2f5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903111720.14806.dkulp@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-0.6 required=3.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.5-gr0 On Wed March 11 2009 10:49:28 am Benson Margulies wrote: > My gut reaction is that this is not supposed to work. Synchronization > has overhead. If we put a synchronized(this) around the body of the > invocations, the single-threaded users pay the price and they don't > need it. If you do it, it's three lines of code and all is well. > However, I'm not the expert here in the JAX-WS standard to which we > strive to conform, so I'm somewhat waiting for word from Dan. No, that is something that SHOULD be working except for the limitations noted at: http://cxf.apache.org/faq.html#FAQ-AreJAXWSclientproxiesthreadsafe%25253F Dan > > On Wed, Mar 11, 2009 at 10:43 AM, Cornel Masson > > wrote: > > Yes..... > > > > Benson Margulies wrote: > >> And you are using that client object, unprotected by a syncronization, > >> in multiple threads? > >> > >> > >> > >> On Wed, Mar 11, 2009 at 10:32 AM, Cornel Masson > >> > >> wrote: > >>> My final solution uses the CXF Client (org.apache.cxf.endpoint.Client) > >>> directly, constructed using the JaxWs Spring factory bean. > >>> > >>> >>> class="org.apache.cxf.jaxws.JaxWsClientFactoryBean" scope="prototype"> > >>> >>> value="com.shazam.internal.recognition.webservices.v1.SIFoRInterface"/> > >>> > >>> > >>> Code: > >>> > >>> //"cxfClientFactory" injected via Spring, then... > >>> cxfClientFactory.setAddress(url); > >>> Client client = cxfClientFactory.create(); > >>> > >>> and used: > >>> > >>> Object[] results = client.invoke(aMethodName, aRequest); > >>> > >>> > >>> That's it. > >>> > >>> -Cornel > > > > ______________________________________________________________________ > > This email has been scanned by the MessageLabs Email Security System. > > For more information please visit http://www.messagelabs.com/email > > ______________________________________________________________________ -- Daniel Kulp dkulp@apache.org http://www.dankulp.com/blog