Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A09F5E7E8 for ; Mon, 11 Feb 2013 12:22:56 +0000 (UTC) Received: (qmail 29409 invoked by uid 500); 11 Feb 2013 12:22:56 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 28905 invoked by uid 500); 11 Feb 2013 12:22:50 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 28861 invoked by uid 99); 11 Feb 2013 12:22:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 12:22:48 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of antongavazuk@gmail.com designates 209.85.220.44 as permitted sender) Received: from [209.85.220.44] (HELO mail-pa0-f44.google.com) (209.85.220.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 12:22:40 +0000 Received: by mail-pa0-f44.google.com with SMTP id kp1so3033026pab.31 for ; Mon, 11 Feb 2013 04:22:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=i0P+6ddOr6+bWeB50BGy+0j+mWPTRawCuq36FchkDus=; b=iXFT9dlsIGNGS0dpD6jGrBVKsbY2WjzpUmVgYHo3v5DnBFVGaWokn6CxWEmKCYSCXT nHHTYtuNIg26rsBhZrIc/KkA8FKSYYgfc1d4N1w6hWmR4P7gFqywcxatNslrT7mcNLQy 4sxNCgyzHGmaw1xVNdjoHJd1ScZPVjO/a4UMdashMwzk9PXxvq1J0x157AA+vp6FdLwq c1jbMq5wG7VDSQv479o8YPHawj15WzjNEogS5zyeVBMfgHuxnie4UrjPFAagDjYATPUd rMIUhz4sCcAcimbiR3Q7VkuRZ2cvBEWe5BjkKAs55uA0RFu5/ybMzMqthyIDBpF7vVVi 7lcA== MIME-Version: 1.0 X-Received: by 10.68.154.228 with SMTP id vr4mr17615509pbb.139.1360585339089; Mon, 11 Feb 2013 04:22:19 -0800 (PST) Received: by 10.66.252.33 with HTTP; Mon, 11 Feb 2013 04:22:18 -0800 (PST) In-Reply-To: <6d9991030910160518r12e320b6p4b4b593a01d754f@mail.gmail.com> References: <6d9991030910140311vb74e96ct43b298d1645a31a2@mail.gmail.com> <6d9991030910142341u132b8b54xb326adaa20d5f0b3@mail.gmail.com> <6d9991030910150526u44973fd5u3628c0dc70635fb2@mail.gmail.com> <6d9991030910160518r12e320b6p4b4b593a01d754f@mail.gmail.com> Date: Mon, 11 Feb 2013 13:22:18 +0100 Message-ID: Subject: Re: Jackrabbit Session inside Stateless Session EJB From: Anton Gavazuk To: Jackrabbit users Content-Type: multipart/alternative; boundary=f46d04190c50d2b24504d571f54b X-Virus-Checked: Checked by ClamAV on apache.org --f46d04190c50d2b24504d571f54b Content-Type: text/plain; charset=ISO-8859-1 Hi community, this discussion has been started long time ago but final aswer has not been provided, is anyone find right approach ? 2009/10/16 Jaco Prinsloo > Stateless beans are exclusively available for one user at a time, but it > might be used by multiple users in sequence. In other words, members of a > SLSB don't have to be thread-safe, but they may not be tight to a specific > user either. So just to confirm, there should be no problem with multiple > users using the same Session instance, as long as they don't do so > concurrently? > > Thanks, > Jaco > > On Thu, Oct 15, 2009 at 2:58 PM, Guo Du wrote: > > > On Thu, Oct 15, 2009 at 1:26 PM, Jaco Prinsloo > > wrote: > > > Thanks, so I assume there isn't any problem with reusing a session (as > > > subsequent requests to the EJB could be made by different users)? > > > > I am not familiar with EJB. The bottom line is that jcr session > > shouldn't be used by different user at the same time if they are going > > to perform updates. If Stateless bean is exclusive available for one > > user, it's safe to reuse the session for different methods. But if > > multiple user could access the same bean instance, the session > > shouldn't be reused. > > > > -Guo > > > --f46d04190c50d2b24504d571f54b--