Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 81027 invoked from network); 21 Aug 2009 10:19:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Aug 2009 10:19:59 -0000 Received: (qmail 51592 invoked by uid 500); 21 Aug 2009 10:20:21 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 51526 invoked by uid 500); 21 Aug 2009 10:20:21 -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 51516 invoked by uid 99); 21 Aug 2009 10:20:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2009 10:20:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [131.239.30.131] (HELO ntmamx1.progress.com) (131.239.30.131) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Aug 2009 10:20:13 +0000 Received: from ntmamx1.progress.com (127.0.0.1) by ntmamx1.progress.com (MlfMTA v3.2r9) id hhpqac0171su for ; Fri, 21 Aug 2009 06:18:58 -0400 (envelope-from ) Received: from progress.com ([172.16.3.168]) by ntmamx1.progress.com (SonicWALL 7.1.1.1995) with ESMTP; Fri, 21 Aug 2009 06:18:58 -0400 Received: from NTEXFE02.bedford.progress.com (ntexfe02 [10.128.10.26]) by progress.com (8.13.8/8.13.8) with ESMTP id n7LAJqIa028408 for ; Fri, 21 Aug 2009 06:19:52 -0400 (EDT) Received: from sberyoz ([10.5.2.31]) by NTEXFE02.bedford.progress.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Fri, 21 Aug 2009 06:19:51 -0400 Message-ID: <008f01ca2248$ed6b43a0$1f02050a@emea.progress.com> From: "Sergey Beryozkin" To: References: <3c68c5a40908201018i6bad3307wed441e9599ce4e64@mail.gmail.com> Subject: Re: Thread Safety Date: Fri, 21 Aug 2009 11:19:53 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3598 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-OriginalArrivalTime: 21 Aug 2009 10:19:51.0648 (UTC) FILETIME=[EB705E00:01CA2248] X-Mlf-Version: 7.1.1.1995 X-Mlf-UniqueId: o200908211018580435825 X-Virus-Checked: Checked by ClamAV on apache.org Hi ----- Original Message ----- From: "Nathaniel Auvil" To: Sent: Thursday, August 20, 2009 6:18 PM Subject: Thread Safety >I am implementing JAX-RS web service with CXF and i want to confirm my > Resource classes are thread safe. i am thinking they are as the examples > show member variables holding various contexts and the like and no where > down the chain does the "AbstractService" extend java servlet. Can someone > in the know please confirm? > All the fields containing injected contexts are thread safe, when resource classes are singletons, so yes resource classes are thread safe. > and no where down the chain does the "AbstractService" extend java servlet. Can you clarify please what you meant to say ? thanks, Sergey